Lines Matching refs:GuardBranch
169 BranchInst *GuardBranch; member
191 GuardBranch(L->getLoopGuardBranch()), PP(PP), AbleToPeel(canPeel(L)), in FusionCandidate()
257 if (GuardBranch) in getEntryBlock()
258 return GuardBranch->getParent(); in getEntryBlock()
282 assert(GuardBranch && "Only valid on guarded loops."); in getNonLoopBlock()
283 assert(GuardBranch->isConditional() && in getNonLoopBlock()
286 return GuardBranch->getSuccessor(1); in getNonLoopBlock()
287 return (GuardBranch->getSuccessor(0) == Preheader) in getNonLoopBlock()
288 ? GuardBranch->getSuccessor(1) in getNonLoopBlock()
289 : GuardBranch->getSuccessor(0); in getNonLoopBlock()
295 if (GuardBranch) in dump()
296 dbgs() << *GuardBranch; in dump()
300 << (GuardBranch ? GuardBranch->getName() : "nullptr") << "\n" in dump()
821 FC0.GuardBranch ? FC0.ExitBlock->getUniqueSuccessor() : FC1.Preheader; in peelFusionCandidate()
922 if ((!FC0->GuardBranch && FC1->GuardBranch) || in fuseCandidates()
923 (FC0->GuardBranch && !FC1->GuardBranch)) { in fuseCandidates()
933 if (FC0->GuardBranch && FC1->GuardBranch && in fuseCandidates()
942 if (FC0->GuardBranch) { in fuseCandidates()
943 assert(FC1->GuardBranch && "Expecting valid FC1 guard branch"); in fuseCandidates()
956 *FC1->GuardBranch->getParent(), in fuseCandidates()
957 *FC0->GuardBranch->getParent()->getTerminator(), DT, &PDT, in fuseCandidates()
1439 if (FC0.GuardBranch) in isAdjacent()
1500 assert(FC0.GuardBranch && FC1.GuardBranch && in haveIdenticalGuards()
1504 dyn_cast<Instruction>(FC0.GuardBranch->getCondition())) in haveIdenticalGuards()
1506 dyn_cast<Instruction>(FC1.GuardBranch->getCondition())) in haveIdenticalGuards()
1513 if (FC0.GuardBranch->getSuccessor(0) == FC0.Preheader) in haveIdenticalGuards()
1514 return (FC1.GuardBranch->getSuccessor(0) == FC1.Preheader); in haveIdenticalGuards()
1516 return (FC1.GuardBranch->getSuccessor(1) == FC1.Preheader); in haveIdenticalGuards()
1586 if (FC0.GuardBranch) in performFusion()
1816 assert(FC0.GuardBranch && FC1.GuardBranch && "Expecting guarded loops"); in fuseGuardedLoops()
1818 BasicBlock *FC0GuardBlock = FC0.GuardBranch->getParent(); in fuseGuardedLoops()
1819 BasicBlock *FC1GuardBlock = FC1.GuardBranch->getParent(); in fuseGuardedLoops()
1849 FC0.GuardBranch->replaceUsesOfWith(FC0NonLoopBlock, FC1NonLoopBlock); in fuseGuardedLoops()
1855 FC1.GuardBranch->eraseFromParent(); in fuseGuardedLoops()