reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
342 auto *T = Rem->getType(); 343 auto *N = Rem->getOperand(0), *D = Rem->getOperand(1); 343 auto *N = Rem->getOperand(0), *D = Rem->getOperand(1); 344 ICmpInst *ICmp = new ICmpInst(Rem, ICmpInst::ICMP_EQ, N, D); 346 SelectInst::Create(ICmp, ConstantInt::get(T, 0), N, "iv.rem", Rem); 347 Rem->replaceAllUsesWith(Sel); 348 LLVM_DEBUG(dbgs() << "INDVARS: Simplified rem: " << *Rem << '\n'); 351 DeadInsts.emplace_back(Rem);