Lines Matching refs:SuccBB

1275       for (auto *SuccBB : successors(LoopBB))  in buildClonedLoopBlocks()  local
1276 if (auto *ClonedSuccBB = cast_or_null<BasicBlock>(VMap.lookup(SuccBB))) in buildClonedLoopBlocks()
1283 for (auto *SuccBB : successors(ParentBB)) { in buildClonedLoopBlocks() local
1284 if (SuccBB == UnswitchedSuccBB) in buildClonedLoopBlocks()
1287 auto *ClonedSuccBB = cast_or_null<BasicBlock>(VMap.lookup(SuccBB)); in buildClonedLoopBlocks()
1335 for (auto *SuccBB : successors(ClonedBB)) in buildClonedLoopBlocks() local
1336 if (SuccSet.insert(SuccBB).second) in buildClonedLoopBlocks()
1337 DTUpdates.push_back({DominatorTree::Insert, ClonedBB, SuccBB}); in buildClonedLoopBlocks()
1668 for (BasicBlock *SuccBB : successors(ClonedBB)) in deleteDeadClonedBlocks()
1669 SuccBB->removePredecessor(ClonedBB); in deleteDeadClonedBlocks()
1706 for (BasicBlock *SuccBB : successors(BB)) { in deleteDeadBlocksFromLoop()
1707 SuccBB->removePredecessor(BB); in deleteDeadBlocksFromLoop()
1708 DeathCandidates.push_back(SuccBB); in deleteDeadBlocksFromLoop()
2280 for (auto *SuccBB : llvm::concat<BasicBlock *const>(ArrayRef(RetainedSuccBB), in unswitchNontrivialInvariants() local
2282 if (SuccBB->getUniquePredecessor() || in unswitchNontrivialInvariants()
2283 llvm::all_of(predecessors(SuccBB), [&](BasicBlock *PredBB) { in unswitchNontrivialInvariants()
2284 return PredBB == ParentBB || DT.dominates(SuccBB, PredBB); in unswitchNontrivialInvariants()
2286 visitDomSubTree(DT, SuccBB, [&](BasicBlock *BB) { in unswitchNontrivialInvariants()
2287 DominatingSucc[BB] = SuccBB; in unswitchNontrivialInvariants()
2306 for (auto *SuccBB : UnswitchedSuccBBs) { in unswitchNontrivialInvariants() local
2308 ClonedPHs[SuccBB] = buildClonedLoopBlocks( in unswitchNontrivialInvariants()
2309 L, LoopPH, SplitBB, ExitBlocks, ParentBB, SuccBB, RetainedSuccBB, in unswitchNontrivialInvariants()
2374 for (BasicBlock *SuccBB : UnswitchedSuccBBs) in unswitchNontrivialInvariants()
2376 {DominatorTree::Insert, SplitBB, ClonedPHs.find(SuccBB)->second}); in unswitchNontrivialInvariants()
2387 for (BasicBlock *SuccBB : UnswitchedSuccBBs) in unswitchNontrivialInvariants()
2388 MSSAU->removeDuplicatePhiEdgesBetween(ParentBB, SuccBB); in unswitchNontrivialInvariants()
2396 for (BasicBlock *SuccBB : UnswitchedSuccBBs) in unswitchNontrivialInvariants()
2397 MSSAU->removeEdge(ParentBB, SuccBB); in unswitchNontrivialInvariants()
2429 for (BasicBlock *SuccBB : UnswitchedSuccBBs) in unswitchNontrivialInvariants()
2430 DTUpdates.push_back({DominatorTree::Delete, ParentBB, SuccBB}); in unswitchNontrivialInvariants()
2811 llvm::count_if(successors(&TI), [&L](const BasicBlock *SuccBB) { in CalculateUnswitchCostMultiplier() argument
2812 return L.contains(SuccBB); in CalculateUnswitchCostMultiplier()
2840 [SkipExitingSuccessors, &L](const BasicBlock *SuccBB) { in CalculateUnswitchCostMultiplier() argument
2841 return !SkipExitingSuccessors || L.contains(SuccBB); in CalculateUnswitchCostMultiplier()
3358 for (BasicBlock *SuccBB : successors(&BB)) { in findBestNonTrivialUnswitchCandidate()
3360 if (!Visited.insert(SuccBB).second) in findBestNonTrivialUnswitchCandidate()
3372 if (SuccBB == BI.getSuccessor(1)) in findBestNonTrivialUnswitchCandidate()
3375 if (SuccBB == BI.getSuccessor(0)) in findBestNonTrivialUnswitchCandidate()
3378 SuccBB == BI.getSuccessor(0)) || in findBestNonTrivialUnswitchCandidate()
3380 SuccBB == BI.getSuccessor(1))) in findBestNonTrivialUnswitchCandidate()
3388 if (SuccBB->getUniquePredecessor() || in findBestNonTrivialUnswitchCandidate()
3389 llvm::all_of(predecessors(SuccBB), [&](BasicBlock *PredBB) { in findBestNonTrivialUnswitchCandidate()
3390 return PredBB == &BB || DT.dominates(SuccBB, PredBB); in findBestNonTrivialUnswitchCandidate()
3392 Cost += computeDomSubtreeCost(*DT[SuccBB], BBCostMap, DTCostMap); in findBestNonTrivialUnswitchCandidate()