Lines Matching defs:ShiftI
2299 SinkShiftAndTruncate(BinaryOperator *ShiftI, Instruction *User, ConstantInt *CI,
2346 if (ShiftI->getOpcode() == Instruction::AShr)
2348 BinaryOperator::CreateAShr(ShiftI->getOperand(0), CI, "");
2351 BinaryOperator::CreateLShr(ShiftI->getOperand(0), CI, "");
2352 InsertedShift->setDebugLoc(ShiftI->getDebugLoc());
2392 static bool OptimizeExtractBits(BinaryOperator *ShiftI, ConstantInt *CI,
2395 BasicBlock *DefBB = ShiftI->getParent();
2400 bool shiftIsLegal = TLI.isTypeLegal(TLI.getValueType(DL, ShiftI->getType()));
2403 for (Value::user_iterator UI = ShiftI->user_begin(), E = ShiftI->user_end();
2440 SinkShiftAndTruncate(ShiftI, User, CI, InsertedShifts, TLI, DL);
2451 if (ShiftI->getOpcode() == Instruction::AShr)
2453 BinaryOperator::CreateAShr(ShiftI->getOperand(0), CI, "");
2456 BinaryOperator::CreateLShr(ShiftI->getOperand(0), CI, "");
2458 InsertedShift->setDebugLoc(ShiftI->getDebugLoc());
2468 if (ShiftI->use_empty()) {
2469 salvageDebugInfo(*ShiftI);
2470 ShiftI->eraseFromParent();