Lines Matching refs:Shl
916 case Instruction::Shl: in isLoadCombineCandidate()
942 Instruction::Shl}) in shouldConvertOrWithNoCommonBitsToAdd()
1031 static BinaryOperator *ConvertShiftToMul(Instruction *Shl) { in ConvertShiftToMul() argument
1032 Constant *MulCst = ConstantInt::get(Shl->getType(), 1); in ConvertShiftToMul()
1033 auto *SA = cast<ConstantInt>(Shl->getOperand(1)); in ConvertShiftToMul()
1034 MulCst = ConstantFoldBinaryInstruction(Instruction::Shl, MulCst, SA); in ConvertShiftToMul()
1037 BinaryOperator *Mul = BinaryOperator::CreateMul(Shl->getOperand(0), MulCst, in ConvertShiftToMul()
1038 "", Shl->getIterator()); in ConvertShiftToMul()
1039 Shl->setOperand(0, PoisonValue::get(Shl->getType())); // Drop use of op. in ConvertShiftToMul()
1040 Mul->takeName(Shl); in ConvertShiftToMul()
1043 Shl->replaceAllUsesWith(Mul); in ConvertShiftToMul()
1044 Mul->setDebugLoc(Shl->getDebugLoc()); in ConvertShiftToMul()
1050 bool NSW = cast<BinaryOperator>(Shl)->hasNoSignedWrap(); in ConvertShiftToMul()
1051 bool NUW = cast<BinaryOperator>(Shl)->hasNoUnsignedWrap(); in ConvertShiftToMul()
1052 unsigned BitWidth = Shl->getType()->getIntegerBitWidth(); in ConvertShiftToMul()
2147 if (I->getOpcode() == Instruction::Shl && isa<ConstantInt>(I->getOperand(1))) in OptimizeInst()