Lines Matching refs:ParentBB
549 auto *ParentBB = BI.getParent();
550 if (!areLoopExitPHIsLoopInvariant(L, *ParentBB, *LoopExitBB)) {
631 BI.clone()->insertInto(ParentBB, ParentBB->end());
635 Instruction *NewBI = BranchInst::Create(ContinueBB, ParentBB);
670 Instruction *Term = ParentBB->getTerminator();
673 Instruction *NewBI = BranchInst::Create(ContinueBB, ParentBB);
676 MSSAU->removeEdge(ParentBB, LoopExitBB);
678 DT.deleteEdge(ParentBB, LoopExitBB);
686 rewritePHINodesForUnswitchedExitBlock(*UnswitchedBB, *ParentBB, *OldPH);
689 *ParentBB, *OldPH, FullUnswitch);
753 auto *ParentBB = SI.getParent();
765 if (!areLoopExitPHIsLoopInvariant(L, *ParentBB, BBToCheck))
888 rewritePHINodesForUnswitchedExitBlock(*DefaultExitBB, *ParentBB, *OldPH);
893 *ParentBB, *OldPH,
909 rewritePHINodesForUnswitchedExitBlock(*ExitBB, *ParentBB, *OldPH);
920 *ParentBB, *OldPH,
1005 DTUpdates.push_back({DT.Delete, ParentBB, UnswitchedExitBB});
1009 DTUpdates.push_back({DT.Delete, ParentBB, SplitUnswitchedPair.first});
1169 ArrayRef<BasicBlock *> ExitBlocks, BasicBlock *ParentBB,
1295 auto *ClonedParentBB = cast<BasicBlock>(VMap.lookup(ParentBB));
1296 for (auto *SuccBB : successors(ParentBB)) {
2181 auto *ParentBB = TI.getParent();
2249 assert(LI.getLoopFor(ParentBB) == &L && "Branch in an inner loop!");
2298 return PredBB == ParentBB || DT.dominates(SuccBB, PredBB);
2323 L, LoopPH, SplitBB, ExitBlocks, ParentBB, SuccBB, RetainedSuccBB,
2351 NewTI->insertInto(ParentBB, ParentBB->end());
2405 MSSAU->removeDuplicatePhiEdgesBetween(ParentBB, RetainedSuccBB);
2407 MSSAU->removeDuplicatePhiEdgesBetween(ParentBB, SuccBB);
2416 MSSAU->removeEdge(ParentBB, SuccBB);
2427 UnswitchedSuccBB->removePredecessor(ParentBB,
2429 DTUpdates.push_back({DominatorTree::Delete, ParentBB, UnswitchedSuccBB});
2442 ParentBB,
2449 DTUpdates.push_back({DominatorTree::Delete, ParentBB, SuccBB});
2454 Instruction *NewBI = BranchInst::Create(RetainedSuccBB, ParentBB);