Lines Matching refs:RemInst
84 AssertingVH<Instruction> RemInst; member
87 : DivInst(DivInst_), RemInst(RemInst_) { in DivRemPairWorklistEntry()
91 assert(DivInst->getType() == RemInst->getType() && "Types should match."); in DivRemPairWorklistEntry()
107 switch (RemInst->getOpcode()) { in isRemExpanded()
160 Instruction *RemInst = RemPair.second; in getWorklist() local
163 Worklist.emplace_back(It->second, RemInst); in getWorklist()
199 auto &RemInst = E.RemInst; in optimizeDivRem() local
213 RealRem->setName(RemInst->getName() + ".recomposed"); in optimizeDivRem()
214 RealRem->insertAfter(RemInst); in optimizeDivRem()
215 Instruction *OrigRemInst = RemInst; in optimizeDivRem()
217 RemInst = RealRem; in optimizeDivRem()
234 if (HasDivRemOp && RemInst->getParent() == DivInst->getParent()) in optimizeDivRem()
237 bool DivDominates = DT.dominates(DivInst, RemInst); in optimizeDivRem()
238 if (!DivDominates && !DT.dominates(RemInst, DivInst)) { in optimizeDivRem()
254 RemInst->moveAfter(DivInst); in optimizeDivRem()
256 DivInst->moveAfter(RemInst); in optimizeDivRem()
304 DivInst->moveBefore(RemInst); in optimizeDivRem()
305 Mul->insertAfter(RemInst); in optimizeDivRem()
333 Sub->setName(RemInst->getName() + ".decomposed"); in optimizeDivRem()
334 Instruction *OrigRemInst = RemInst; in optimizeDivRem()
336 RemInst = Sub; in optimizeDivRem()