Lines Matching refs:Shl
975 case Instruction::Shl: in isLoadCombineCandidate()
1001 Instruction::Shl}) in shouldConvertOrWithNoCommonBitsToAdd()
1089 static BinaryOperator *ConvertShiftToMul(Instruction *Shl) { in ConvertShiftToMul() argument
1090 Constant *MulCst = ConstantInt::get(Shl->getType(), 1); in ConvertShiftToMul()
1091 auto *SA = cast<ConstantInt>(Shl->getOperand(1)); in ConvertShiftToMul()
1095 BinaryOperator::CreateMul(Shl->getOperand(0), MulCst, "", Shl); in ConvertShiftToMul()
1096 Shl->setOperand(0, PoisonValue::get(Shl->getType())); // Drop use of op. in ConvertShiftToMul()
1097 Mul->takeName(Shl); in ConvertShiftToMul()
1100 Shl->replaceAllUsesWith(Mul); in ConvertShiftToMul()
1101 Mul->setDebugLoc(Shl->getDebugLoc()); in ConvertShiftToMul()
1107 bool NSW = cast<BinaryOperator>(Shl)->hasNoSignedWrap(); in ConvertShiftToMul()
1108 bool NUW = cast<BinaryOperator>(Shl)->hasNoUnsignedWrap(); in ConvertShiftToMul()
1109 unsigned BitWidth = Shl->getType()->getIntegerBitWidth(); in ConvertShiftToMul()
2205 if (I->getOpcode() == Instruction::Shl && isa<ConstantInt>(I->getOperand(1))) in OptimizeInst()