Lines Matching refs:ShiftI
938 SinkShiftAndTruncate(BinaryOperator *ShiftI, Instruction *User, ConstantInt *CI, in SinkShiftAndTruncate() argument
985 if (ShiftI->getOpcode() == Instruction::AShr) in SinkShiftAndTruncate()
986 InsertedShift = BinaryOperator::CreateAShr(ShiftI->getOperand(0), CI, in SinkShiftAndTruncate()
989 InsertedShift = BinaryOperator::CreateLShr(ShiftI->getOperand(0), CI, in SinkShiftAndTruncate()
1025 static bool OptimizeExtractBits(BinaryOperator *ShiftI, ConstantInt *CI, in OptimizeExtractBits() argument
1028 BasicBlock *DefBB = ShiftI->getParent(); in OptimizeExtractBits()
1033 bool shiftIsLegal = TLI.isTypeLegal(TLI.getValueType(DL, ShiftI->getType())); in OptimizeExtractBits()
1036 for (Value::user_iterator UI = ShiftI->user_begin(), E = ShiftI->user_end(); in OptimizeExtractBits()
1073 SinkShiftAndTruncate(ShiftI, User, CI, InsertedShifts, TLI, DL); in OptimizeExtractBits()
1084 if (ShiftI->getOpcode() == Instruction::AShr) in OptimizeExtractBits()
1085 InsertedShift = BinaryOperator::CreateAShr(ShiftI->getOperand(0), CI, in OptimizeExtractBits()
1088 InsertedShift = BinaryOperator::CreateLShr(ShiftI->getOperand(0), CI, in OptimizeExtractBits()
1099 if (ShiftI->use_empty()) in OptimizeExtractBits()
1100 ShiftI->eraseFromParent(); in OptimizeExtractBits()