Lines Matching defs:LatchBrExitIdx
21 unsigned LatchBrExitIdx, Loop *L,
37 LLVM_DEBUG(dbgs() << "LatchExitBrIdx: " << LatchBrExitIdx << "\n");
48 if (LatchBrExitIdx == 1)
51 assert(LatchBrExitIdx == 0 && "LatchBrExitIdx should be either 0 or 1");
70 unsigned LatchBrExitIdx, Loop *L,
84 LLVM_DEBUG(dbgs() << "LatchExitBrIdx: " << LatchBrExitIdx << "\n");
95 if (LatchBrExitIdx == 1)
98 assert(LatchBrExitIdx == 0 && "LatchBrExitIdx should be 0 or 1");
159 unsigned LatchBrExitIdx = LatchBr->getSuccessor(0) == Header ? 1 : 0;
266 if (Pred == ICmpInst::ICMP_NE && LatchBrExitIdx == 1)
278 else if (Pred == ICmpInst::ICMP_EQ && LatchBrExitIdx == 0) {
302 (LTPred && LatchBrExitIdx == 1) || (GTPred && LatchBrExitIdx == 0);
316 LatchBrExitIdx, &L, SE)) {
320 if (LatchBrExitIdx == 0) {
328 "Right value can be decreased only for LatchBrExitIdx == 0!");
334 if (Pred == ICmpInst::ICMP_NE && LatchBrExitIdx == 1)
342 else if (Pred == ICmpInst::ICMP_EQ && LatchBrExitIdx == 0) {
365 (GTPred && LatchBrExitIdx == 1) || (LTPred && LatchBrExitIdx == 0);
381 LatchBrExitIdx, &L, SE)) {
386 if (LatchBrExitIdx == 0) {
394 "Right value can be increased only for LatchBrExitIdx == 0!");
397 BasicBlock *LatchExit = LatchBr->getSuccessor(LatchBrExitIdx);
418 Result.LatchBrExitIdx = LatchBrExitIdx;
625 LS.LatchBr->setSuccessor(LS.LatchBrExitIdx, RRI.ExitSelector);
630 Value *CondForBranch = LS.LatchBrExitIdx == 1