Lines Matching refs:LatchBrExitIdx
445 // `Latch's terminator instruction is `LatchBr', and it's `LatchBrExitIdx'th
449 unsigned LatchBrExitIdx;
458 LatchExit(nullptr), LatchBrExitIdx(-1), IndVarNext(nullptr),
468 Result.LatchBrExitIdx = LatchBrExitIdx;
675 unsigned LatchBrExitIdx = LatchBr->getSuccessor(0) == Header ? 1 : 0;
678 BPI.getEdgeProbability(LatchBr->getParent(), LatchBrExitIdx);
779 (Pred == ICmpInst::ICMP_SLT && LatchBrExitIdx == 1) ||
780 (Pred == ICmpInst::ICMP_SGT && LatchBrExitIdx == 0);
787 if (LatchBrExitIdx == 0) {
801 (Pred == ICmpInst::ICMP_SGT && LatchBrExitIdx == 1) ||
802 (Pred == ICmpInst::ICMP_SLT && LatchBrExitIdx == 0);
809 if (LatchBrExitIdx == 0) {
826 BasicBlock *LatchExit = LatchBr->getSuccessor(LatchBrExitIdx);
846 Result.LatchBrExitIdx = LatchBrExitIdx;
1071 LS.LatchBr->setSuccessor(LS.LatchBrExitIdx, RRI.ExitSelector);
1076 Value *CondForBranch = LS.LatchBrExitIdx == 1