Lines Matching defs:SDiv
105 bool eliminateSDiv(BinaryOperator *SDiv);
298 bool SimplifyIndvar::eliminateSDiv(BinaryOperator *SDiv) {
300 const SCEV *N = SE->getSCEV(SDiv->getOperand(0));
301 const SCEV *D = SE->getSCEV(SDiv->getOperand(1));
304 const Loop *L = LI->getLoopFor(SDiv->getParent());
311 BinaryOperator::UDiv, SDiv->getOperand(0), SDiv->getOperand(1),
312 SDiv->getName() + ".udiv", SDiv->getIterator());
313 UDiv->setIsExact(SDiv->isExact());
314 SDiv->replaceAllUsesWith(UDiv);
315 UDiv->setDebugLoc(SDiv->getDebugLoc());
316 LLVM_DEBUG(dbgs() << "INDVARS: Simplified sdiv: " << *SDiv << '\n');
319 DeadInsts.push_back(SDiv);
607 if (Bin->getOpcode() == Instruction::SDiv)