Lines Matching refs:ParentBB
408 auto *ParentBB = BI.getParent(); in unswitchTrivialBranch() local
409 if (!areLoopExitPHIsLoopInvariant(L, *ParentBB, *LoopExitBB)) in unswitchTrivialBranch()
488 ParentBB->getInstList().push_back(BI.clone()); in unswitchTrivialBranch()
492 BranchInst::Create(ContinueBB, ParentBB); in unswitchTrivialBranch()
526 ParentBB->getTerminator()->eraseFromParent(); in unswitchTrivialBranch()
528 BranchInst::Create(ContinueBB, ParentBB); in unswitchTrivialBranch()
529 MSSAU->removeEdge(ParentBB, LoopExitBB); in unswitchTrivialBranch()
531 DT.deleteEdge(ParentBB, LoopExitBB); in unswitchTrivialBranch()
539 rewritePHINodesForUnswitchedExitBlock(*UnswitchedBB, *ParentBB, *OldPH); in unswitchTrivialBranch()
542 *ParentBB, *OldPH, FullUnswitch); in unswitchTrivialBranch()
606 auto *ParentBB = SI.getParent(); in unswitchTrivialSwitch() local
618 if (!areLoopExitPHIsLoopInvariant(L, *ParentBB, BBToCheck)) in unswitchTrivialSwitch()
734 rewritePHINodesForUnswitchedExitBlock(*DefaultExitBB, *ParentBB, *OldPH); in unswitchTrivialSwitch()
739 *ParentBB, *OldPH, in unswitchTrivialSwitch()
755 rewritePHINodesForUnswitchedExitBlock(*ExitBB, *ParentBB, *OldPH); in unswitchTrivialSwitch()
766 *ParentBB, *OldPH, in unswitchTrivialSwitch()
850 DTUpdates.push_back({DT.Delete, ParentBB, UnswitchedExitBB}); in unswitchTrivialSwitch()
854 DTUpdates.push_back({DT.Delete, ParentBB, SplitUnswitchedPair.first}); in unswitchTrivialSwitch()
1012 ArrayRef<BasicBlock *> ExitBlocks, BasicBlock *ParentBB, in buildClonedLoopBlocks() argument
1127 auto *ClonedParentBB = cast<BasicBlock>(VMap.lookup(ParentBB)); in buildClonedLoopBlocks()
1128 for (auto *SuccBB : successors(ParentBB)) { in buildClonedLoopBlocks()
1965 auto *ParentBB = TI.getParent(); in unswitchNontrivialInvariants() local
2020 assert(LI.getLoopFor(ParentBB) == &L && "Branch in an inner loop!"); in unswitchNontrivialInvariants()
2064 return PredBB == ParentBB || DT.dominates(SuccBB, PredBB); in unswitchNontrivialInvariants()
2089 L, LoopPH, SplitBB, ExitBlocks, ParentBB, SuccBB, RetainedSuccBB, in unswitchNontrivialInvariants()
2117 SplitBB->getInstList().splice(SplitBB->end(), ParentBB->getInstList(), TI); in unswitchNontrivialInvariants()
2121 ParentBB->getInstList().push_back(NewTI); in unswitchNontrivialInvariants()
2157 MSSAU->removeDuplicatePhiEdgesBetween(ParentBB, RetainedSuccBB); in unswitchNontrivialInvariants()
2159 MSSAU->removeDuplicatePhiEdgesBetween(ParentBB, SuccBB); in unswitchNontrivialInvariants()
2168 MSSAU->removeEdge(ParentBB, SuccBB); in unswitchNontrivialInvariants()
2179 UnswitchedSuccBB->removePredecessor(ParentBB, in unswitchNontrivialInvariants()
2181 DTUpdates.push_back({DominatorTree::Delete, ParentBB, UnswitchedSuccBB}); in unswitchNontrivialInvariants()
2194 ParentBB, in unswitchNontrivialInvariants()
2201 DTUpdates.push_back({DominatorTree::Delete, ParentBB, SuccBB}); in unswitchNontrivialInvariants()
2205 ParentBB->getTerminator()->eraseFromParent(); in unswitchNontrivialInvariants()
2209 BranchInst::Create(RetainedSuccBB, ParentBB); in unswitchNontrivialInvariants()