Lines Matching refs:Shl
1001 case Instruction::Shl: in isLoadCombineCandidate()
1027 Instruction::Shl}) in shouldConvertOrWithNoCommonBitsToAdd()
1115 static BinaryOperator *ConvertShiftToMul(Instruction *Shl) { in ConvertShiftToMul() argument
1116 Constant *MulCst = ConstantInt::get(Shl->getType(), 1); in ConvertShiftToMul()
1117 auto *SA = cast<ConstantInt>(Shl->getOperand(1)); in ConvertShiftToMul()
1121 BinaryOperator::CreateMul(Shl->getOperand(0), MulCst, "", Shl); in ConvertShiftToMul()
1122 Shl->setOperand(0, PoisonValue::get(Shl->getType())); // Drop use of op. in ConvertShiftToMul()
1123 Mul->takeName(Shl); in ConvertShiftToMul()
1126 Shl->replaceAllUsesWith(Mul); in ConvertShiftToMul()
1127 Mul->setDebugLoc(Shl->getDebugLoc()); in ConvertShiftToMul()
1133 bool NSW = cast<BinaryOperator>(Shl)->hasNoSignedWrap(); in ConvertShiftToMul()
1134 bool NUW = cast<BinaryOperator>(Shl)->hasNoUnsignedWrap(); in ConvertShiftToMul()
1135 unsigned BitWidth = Shl->getType()->getIntegerBitWidth(); in ConvertShiftToMul()
2230 if (I->getOpcode() == Instruction::Shl && isa<ConstantInt>(I->getOperand(1))) in OptimizeInst()