Lines Matching refs:RI
195 BasicBlock::iterator RI = R->begin(); in diff() local
198 assert(LI != LE && RI != R->end()); in diff()
199 Instruction *LeftI = &*LI, *RightI = &*RI; in diff()
213 ++RI; in diff()
219 for (LI = L->begin(), RI = R->begin(); LI != LE; ++LI, ++RI) in diff()
220 unify(&*LI, &*RI); in diff()
224 void runBlockDiff(BasicBlock::iterator LI, BasicBlock::iterator RI);
278 InvokeInst *RI = cast<InvokeInst>(R); in diff() local
279 if (diffCallSites(CallSite(LI), CallSite(RI), Complain)) in diff()
283 tryUnify(LI->getNormalDest(), RI->getNormalDest()); in diff()
284 tryUnify(LI->getUnwindDest(), RI->getUnwindDest()); in diff()
290 BranchInst *RI = cast<BranchInst>(R); in diff() local
291 if (LI->isConditional() != RI->isConditional()) { in diff()
297 if (!equivalentAsOperands(LI->getCondition(), RI->getCondition())) { in diff()
301 if (TryUnify) tryUnify(LI->getSuccessor(1), RI->getSuccessor(1)); in diff()
303 if (TryUnify) tryUnify(LI->getSuccessor(0), RI->getSuccessor(0)); in diff()
308 SwitchInst *RI = cast<SwitchInst>(R); in diff() local
309 if (!equivalentAsOperands(LI->getCondition(), RI->getCondition())) { in diff()
313 if (TryUnify) tryUnify(LI->getDefaultDest(), RI->getDefaultDest()); in diff()
323 for (SwitchInst::CaseIt I = RI->case_begin(), E = RI->case_end(); in diff()
466 RI = R->arg_begin(), RE = R->arg_end(); in diff() local
467 LI != LE && RI != RE; ++LI, ++RI) in diff()
468 Values[&*LI] = &*RI; in diff()
513 for (BasicBlock::iterator RI = RStart; RI != RE; ++RI) { in runBlockDiff() local
521 if (matchForBlockDiff(&*LI, &*RI)) { in runBlockDiff()
525 TentativeValues.insert(std::make_pair(&*LI, &*RI)); in runBlockDiff()
545 BasicBlock::iterator LI = LStart, RI = RStart; in runBlockDiff() local
557 unify(&*LI, &*RI); in runBlockDiff()
560 ++RI; in runBlockDiff()
566 assert(LI != LE && RI != RE); in runBlockDiff()
568 Instruction *L = &*LI, *R = &*RI; in runBlockDiff()
572 ++LI; ++RI; in runBlockDiff()
582 assert(RI != RE); in runBlockDiff()
583 Diff.addRight(&*RI); in runBlockDiff()
584 ++RI; in runBlockDiff()
592 assert(RI != RE); in runBlockDiff()
593 unify(&*LI, &*RI); in runBlockDiff()
595 ++RI; in runBlockDiff()