Lines Matching refs:SuccBB

170     auto *SuccBB = PhiBB;  in updatePredecessorProfileMetadata()  local
175 return {PredBB, SuccBB}; in updatePredecessorProfileMetadata()
186 SuccBB = PredBB; in updatePredecessorProfileMetadata()
1496 for (auto *SuccBB : successors(BB)) in findMostPopularDest() local
1497 DestPopularity[SuccBB] = 0; in findMostPopularDest()
1647 for (BasicBlock *SuccBB : successors(BB)) { in processThreadableEdges()
1648 if (SuccBB == OnlyDest && !SeenFirstBranchToOnlyDest) { in processThreadableEdges()
1651 SuccBB->removePredecessor(BB, true); // This is unreachable successor. in processThreadableEdges()
1652 Updates.push_back({DominatorTree::Delete, BB, SuccBB}); in processThreadableEdges()
2223 BasicBlock *SuccBB = CondBr->getSuccessor(PredPredBB == ZeroPred); in maybethreadThroughTwoBasicBlocks() local
2226 if (SuccBB == BB) { in maybethreadThroughTwoBasicBlocks()
2234 if (LoopHeaders.count(BB) || LoopHeaders.count(SuccBB)) { in maybethreadThroughTwoBasicBlocks()
2237 bool SuccIsHeader = LoopHeaders.count(SuccBB); in maybethreadThroughTwoBasicBlocks()
2242 << SuccBB->getName() in maybethreadThroughTwoBasicBlocks()
2266 threadThroughTwoBasicBlocks(PredPredBB, PredBB, BB, SuccBB); in maybethreadThroughTwoBasicBlocks()
2273 BasicBlock *SuccBB) { in threadThroughTwoBasicBlocks() argument
2338 threadEdge(BB, PredsToFactor, SuccBB); in threadThroughTwoBasicBlocks()
2344 BasicBlock *SuccBB) { in tryThreadEdge() argument
2346 if (SuccBB == BB) { in tryThreadEdge()
2354 if (LoopHeaders.count(BB) || LoopHeaders.count(SuccBB)) { in tryThreadEdge()
2357 bool SuccIsHeader = LoopHeaders.count(SuccBB); in tryThreadEdge()
2361 << SuccBB->getName() << "' - it might create an irreducible loop!\n"; in tryThreadEdge()
2374 threadEdge(BB, PredBBs, SuccBB); in tryThreadEdge()
2383 BasicBlock *SuccBB) { in threadEdge() argument
2384 assert(SuccBB != BB && "Don't create an infinite loop"); in threadEdge()
2386 assert(!LoopHeaders.count(BB) && !LoopHeaders.count(SuccBB) && in threadEdge()
2406 << "' to '" << SuccBB->getName() in threadEdge()
2409 LVI->threadEdge(PredBB, BB, SuccBB); in threadEdge()
2430 BranchInst *NewBI = BranchInst::Create(SuccBB, NewBB); in threadEdge()
2435 addPHINodeEntriesForMappedBlock(SuccBB, BB, NewBB, ValueMapping); in threadEdge()
2448 DTU->applyUpdatesPermissive({{DominatorTree::Insert, NewBB, SuccBB}, in threadEdge()
2460 updateBlockFreqAndEdgeWeight(PredBB, BB, NewBB, SuccBB, BFI, BPI, HasProfile); in threadEdge()
2527 BasicBlock *SuccBB, in updateBlockFreqAndEdgeWeight() argument
2544 auto BB2SuccBBFreq = BBOrigFreq * BPI->getEdgeProbability(BB, SuccBB); in updateBlockFreqAndEdgeWeight()
2552 auto SuccFreq = (Succ == SuccBB) in updateBlockFreqAndEdgeWeight()
2725 if (BasicBlock *SuccBB = dyn_cast<BasicBlock>(New->getOperand(i))) in duplicateCondBranchOnPHIIntoPred() local
2726 Updates.push_back({DominatorTree::Insert, PredBB, SuccBB}); in duplicateCondBranchOnPHIIntoPred()