Lines Matching defs:ShiftI
2096 SinkShiftAndTruncate(BinaryOperator *ShiftI, Instruction *User, ConstantInt *CI,
2143 if (ShiftI->getOpcode() == Instruction::AShr)
2145 BinaryOperator::CreateAShr(ShiftI->getOperand(0), CI, "");
2148 BinaryOperator::CreateLShr(ShiftI->getOperand(0), CI, "");
2149 InsertedShift->setDebugLoc(ShiftI->getDebugLoc());
2189 static bool OptimizeExtractBits(BinaryOperator *ShiftI, ConstantInt *CI,
2192 BasicBlock *DefBB = ShiftI->getParent();
2197 bool shiftIsLegal = TLI.isTypeLegal(TLI.getValueType(DL, ShiftI->getType()));
2200 for (Value::user_iterator UI = ShiftI->user_begin(), E = ShiftI->user_end();
2237 SinkShiftAndTruncate(ShiftI, User, CI, InsertedShifts, TLI, DL);
2248 if (ShiftI->getOpcode() == Instruction::AShr)
2250 BinaryOperator::CreateAShr(ShiftI->getOperand(0), CI, "");
2253 BinaryOperator::CreateLShr(ShiftI->getOperand(0), CI, "");
2255 InsertedShift->setDebugLoc(ShiftI->getDebugLoc());
2265 if (ShiftI->use_empty()) {
2266 salvageDebugInfo(*ShiftI);
2267 ShiftI->eraseFromParent();