Lines Matching refs:ShiftI
976 SinkShiftAndTruncate(BinaryOperator *ShiftI, Instruction *User, ConstantInt *CI, in SinkShiftAndTruncate() argument
1023 if (ShiftI->getOpcode() == Instruction::AShr) in SinkShiftAndTruncate()
1024 InsertedShift = BinaryOperator::CreateAShr(ShiftI->getOperand(0), CI, in SinkShiftAndTruncate()
1027 InsertedShift = BinaryOperator::CreateLShr(ShiftI->getOperand(0), CI, in SinkShiftAndTruncate()
1063 static bool OptimizeExtractBits(BinaryOperator *ShiftI, ConstantInt *CI, in OptimizeExtractBits() argument
1066 BasicBlock *DefBB = ShiftI->getParent(); in OptimizeExtractBits()
1071 bool shiftIsLegal = TLI.isTypeLegal(TLI.getValueType(DL, ShiftI->getType())); in OptimizeExtractBits()
1074 for (Value::user_iterator UI = ShiftI->user_begin(), E = ShiftI->user_end(); in OptimizeExtractBits()
1111 SinkShiftAndTruncate(ShiftI, User, CI, InsertedShifts, TLI, DL); in OptimizeExtractBits()
1122 if (ShiftI->getOpcode() == Instruction::AShr) in OptimizeExtractBits()
1123 InsertedShift = BinaryOperator::CreateAShr(ShiftI->getOperand(0), CI, in OptimizeExtractBits()
1126 InsertedShift = BinaryOperator::CreateLShr(ShiftI->getOperand(0), CI, in OptimizeExtractBits()
1137 if (ShiftI->use_empty()) in OptimizeExtractBits()
1138 ShiftI->eraseFromParent(); in OptimizeExtractBits()