Home
last modified time | relevance | path

Searched refs:SuccBB (Results 1 – 25 of 61) sorted by relevance

123

/external/llvm/lib/Transforms/Scalar/
DLoopInstSimplify.cpp149 BasicBlock *SuccBB = *SI; in runOnLoop() local
150 if (!Visited.insert(SuccBB).second) in runOnLoop()
153 const Loop *SuccLoop = LI->getLoopFor(SuccBB); in runOnLoop()
154 if (SuccLoop && SuccLoop->getHeader() == SuccBB in runOnLoop()
156 VisitStack.push_back(WorklistItem(SuccBB, true)); in runOnLoop()
171 ExitBlocks.end(), SuccBB); in runOnLoop()
175 VisitStack.push_back(WorklistItem(SuccBB, false)); in runOnLoop()
DJumpThreading.cpp1440 BasicBlock *SuccBB) { in ThreadEdge() argument
1442 if (SuccBB == BB) { in ThreadEdge()
1452 << "' to dest BB '" << SuccBB->getName() in ThreadEdge()
1476 << SuccBB->getName() << "' with cost: " << JumpThreadCost in ThreadEdge()
1480 LVI->threadEdge(PredBB, BB, SuccBB); in ThreadEdge()
1522 BranchInst *NewBI = BranchInst::Create(SuccBB, NewBB); in ThreadEdge()
1527 AddPHINodeEntriesForMappedBlock(SuccBB, BB, NewBB, ValueMapping); in ThreadEdge()
1584 UpdateBlockFreqAndEdgeWeight(PredBB, BB, NewBB, SuccBB); in ThreadEdge()
1619 BasicBlock *SuccBB) { in UpdateBlockFreqAndEdgeWeight() argument
1629 auto BB2SuccBBFreq = BBOrigFreq * BPI->getEdgeProbability(BB, SuccBB); in UpdateBlockFreqAndEdgeWeight()
[all …]
DTailRecursionElimination.cpp276 for (auto *SuccBB : make_range(succ_begin(BB), succ_end(BB))) { in markTails() local
277 auto &State = Visited[SuccBB]; in markTails()
281 WorklistEscaped.push_back(SuccBB); in markTails()
283 WorklistUnescaped.push_back(SuccBB); in markTails()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DSimpleLoopUnswitch.cpp603 auto *SuccBB = Case.getCaseSuccessor(); in unswitchTrivialSwitch() local
604 if (!L.contains(SuccBB) && in unswitchTrivialSwitch()
605 areLoopExitPHIsLoopInvariant(L, *ParentBB, *SuccBB)) in unswitchTrivialSwitch()
1096 for (auto *SuccBB : successors(LoopBB)) in buildClonedLoopBlocks() local
1097 if (auto *ClonedSuccBB = cast_or_null<BasicBlock>(VMap.lookup(SuccBB))) in buildClonedLoopBlocks()
1104 for (auto *SuccBB : successors(ParentBB)) { in buildClonedLoopBlocks() local
1105 if (SuccBB == UnswitchedSuccBB) in buildClonedLoopBlocks()
1108 auto *ClonedSuccBB = cast_or_null<BasicBlock>(VMap.lookup(SuccBB)); in buildClonedLoopBlocks()
1143 for (auto *SuccBB : successors(ClonedBB)) in buildClonedLoopBlocks() local
1144 if (SuccSet.insert(SuccBB).second) in buildClonedLoopBlocks()
[all …]
DJumpThreading.cpp227 auto *SuccBB = PhiBB; in updatePredecessorProfileMetadata() local
232 return {PredBB, SuccBB}; in updatePredecessorProfileMetadata()
243 SuccBB = PredBB; in updatePredecessorProfileMetadata()
1642 for (BasicBlock *SuccBB : successors(BB)) { in ProcessThreadableEdges()
1643 if (SuccBB == OnlyDest && !SeenFirstBranchToOnlyDest) { in ProcessThreadableEdges()
1646 SuccBB->removePredecessor(BB, true); // This is unreachable successor. in ProcessThreadableEdges()
1647 Updates.push_back({DominatorTree::Delete, BB, SuccBB}); in ProcessThreadableEdges()
2021 BasicBlock *SuccBB) { in TryThreadEdge() argument
2023 if (SuccBB == BB) { in TryThreadEdge()
2031 if (LoopHeaders.count(BB) || LoopHeaders.count(SuccBB)) { in TryThreadEdge()
[all …]
DTailRecursionElimination.cpp283 for (auto *SuccBB : make_range(succ_begin(BB), succ_end(BB))) { in markTails() local
284 auto &State = Visited[SuccBB]; in markTails()
288 WorklistEscaped.push_back(SuccBB); in markTails()
290 WorklistUnescaped.push_back(SuccBB); in markTails()
/external/llvm/lib/Analysis/
DIteratedDominanceFrontier.cpp85 BasicBlock *SuccBB = SuccNode->getBlock(); in calculate() local
86 if (useLiveIn && !LiveInBlocks->count(SuccBB)) in calculate()
89 PHIBlocks.emplace_back(SuccBB); in calculate()
90 if (!DefBlocks->count(SuccBB)) in calculate()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DBranchFolding.cpp464 static void FixTail(MachineBasicBlock *CurMBB, MachineBasicBlock *SuccBB, in FixTail() argument
476 TII->insertBranch(*CurMBB, SuccBB, nullptr, Cond, dl); in FixTail()
481 TII->insertBranch(*CurMBB, SuccBB, nullptr, in FixTail()
590 MachineBasicBlock::iterator &I2, MachineBasicBlock *SuccBB, in ProfitableToMerge() argument
677 if (SuccBB && MBB1 != PredBB && MBB2 != PredBB && in ProfitableToMerge()
702 MachineBasicBlock *SuccBB, in ComputeSameTails() argument
716 SuccBB, PredBB, in ComputeSameTails()
737 MachineBasicBlock *SuccBB, in RemoveBlocksWithHash() argument
745 if (SuccBB && CurMBB != PredBB) in RemoveBlocksWithHash()
746 FixTail(CurMBB, SuccBB, TII); in RemoveBlocksWithHash()
[all …]
DBranchFolding.h163 bool TryTailMergeBlocks(MachineBasicBlock* SuccBB,
190 MachineBasicBlock *SuccBB,
195 void RemoveBlocksWithHash(unsigned CurHash, MachineBasicBlock* SuccBB,
201 MachineBasicBlock *SuccBB,
DMachineSink.cpp1209 static void updateLiveIn(MachineInstr *MI, MachineBasicBlock *SuccBB, in updateLiveIn() argument
1212 MachineFunction &MF = *SuccBB->getParent(); in updateLiveIn()
1216 SuccBB->removeLiveIn(*S); in updateLiveIn()
1223 SuccBB->addLiveIn(SrcReg, Mask.any() ? Mask : LaneBitmask::getAll()); in updateLiveIn()
1225 SuccBB->sortUniqueLiveIns(); in updateLiveIn()
1344 MachineBasicBlock *SuccBB = in tryToSinkCopy() local
1348 if (!SuccBB) { in tryToSinkCopy()
1353 assert((SuccBB->pred_size() == 1 && *SuccBB->pred_begin() == &CurBB) && in tryToSinkCopy()
1376 MachineBasicBlock::iterator InsertPos = SuccBB->getFirstNonPHI(); in tryToSinkCopy()
1377 performSink(*MI, *SuccBB, InsertPos, DbgValsToSink); in tryToSinkCopy()
[all …]
DIndirectBrExpandPass.cpp105 for (BasicBlock *SuccBB : IBr->successors()) in runOnFunction()
106 IndirectBrSuccs.insert(SuccBB); in runOnFunction()
/external/llvm/lib/CodeGen/
DBranchFolding.cpp504 static void FixTail(MachineBasicBlock *CurMBB, MachineBasicBlock *SuccBB, in FixTail() argument
516 TII->InsertBranch(*CurMBB, SuccBB, nullptr, Cond, dl); in FixTail()
521 TII->InsertBranch(*CurMBB, SuccBB, nullptr, in FixTail()
598 MachineBasicBlock::iterator &I2, MachineBasicBlock *SuccBB, in ProfitableToMerge() argument
640 if (SuccBB && MBB1 != PredBB && MBB2 != PredBB && in ProfitableToMerge()
670 MachineBasicBlock *SuccBB, in ComputeSameTails() argument
684 SuccBB, PredBB, in ComputeSameTails()
706 MachineBasicBlock *SuccBB, in RemoveBlocksWithHash() argument
714 if (SuccBB && CurMBB != PredBB) in RemoveBlocksWithHash()
715 FixTail(CurMBB, SuccBB, TII); in RemoveBlocksWithHash()
[all …]
DBranchFolding.h131 bool TryTailMergeBlocks(MachineBasicBlock* SuccBB,
141 MachineBasicBlock *SuccBB,
143 void RemoveBlocksWithHash(unsigned CurHash, MachineBasicBlock* SuccBB,
146 MachineBasicBlock *SuccBB,
DShrinkWrap.cpp410 for (const MachineBasicBlock *SuccBB : MBB->successors()) { in isIrreducibleCFG() local
411 if (!VisitedBB.test(SuccBB->getNumber())) in isIrreducibleCFG()
416 if (!isProperBackedge(MLI, MBB, SuccBB)) in isIrreducibleCFG()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DHotColdSplitting.cpp274 for (BasicBlock *SuccBB : successors(BB)) { in getOutliningPenalty()
275 if (find(Region, SuccBB) == Region.end()) { in getOutliningPenalty()
277 SuccsOutsideRegion.insert(SuccBB); in getOutliningPenalty()
471 BasicBlock &SuccBB = **SuccIt; in create() local
472 bool SinkDom = DT.dominates(&SinkBB, &SuccBB); in create()
475 bool DuplicateBlock = RegionBlocks.count(&SuccBB); in create()
479 if (DuplicateBlock || !SinkDom || !mayExtractBlock(SuccBB)) { in create()
484 unsigned SuccScore = getEntryPointScore(SuccBB, ScoreForSuccBlock); in create()
486 ColdRegion->SuggestedEntryPoint = &SuccBB; in create()
490 addBlockToRegion(&SuccBB, SuccScore); in create()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DGenericIteratedDominanceFrontier.h186 NodeTy *SuccBB = SuccNode->getBlock(); in calculate() local
187 if (useLiveIn && !LiveInBlocks->count(SuccBB)) in calculate()
190 PHIBlocks.emplace_back(SuccBB); in calculate()
191 if (!DefBlocks->count(SuccBB)) in calculate()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/
DMipsDelaySlotFiller.cpp124 const MachineBasicBlock &SuccBB);
404 const MachineBasicBlock &SuccBB) { in addLiveOut() argument
407 if (*SI != &SuccBB) in addLiveOut()
826 MachineBasicBlock *SuccBB = selectSuccBB(MBB); in searchSuccBBs() local
828 if (!SuccBB) in searchSuccBBs()
839 for (MachineBasicBlock::pred_iterator PI = SuccBB->pred_begin(), in searchSuccBBs()
840 PE = SuccBB->pred_end(); PI != PE; ++PI) in searchSuccBBs()
841 if (!examinePred(**PI, *SuccBB, RegDU, HasMultipleSuccs, BrMap)) in searchSuccBBs()
857 if (!searchRange(MBB, SuccBB->begin(), SuccBB->end(), RegDU, *IM, Slot, in searchSuccBBs()
862 addLiveInRegs(Filler, *SuccBB); in searchSuccBBs()
/external/llvm/lib/Target/Mips/
DMipsDelaySlotFiller.cpp106 const MachineBasicBlock &SuccBB);
378 const MachineBasicBlock &SuccBB) { in addLiveOut() argument
381 if (*SI != &SuccBB) in addLiveOut()
752 MachineBasicBlock *SuccBB = selectSuccBB(MBB); in searchSuccBBs() local
754 if (!SuccBB) in searchSuccBBs()
765 for (MachineBasicBlock::pred_iterator PI = SuccBB->pred_begin(), in searchSuccBBs()
766 PE = SuccBB->pred_end(); PI != PE; ++PI) in searchSuccBBs()
767 if (!examinePred(**PI, *SuccBB, RegDU, HasMultipleSuccs, BrMap)) in searchSuccBBs()
783 if (!searchRange(MBB, SuccBB->begin(), SuccBB->end(), RegDU, *IM, Slot, in searchSuccBBs()
788 addLiveInRegs(Filler, *SuccBB); in searchSuccBBs()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Scalar/
DJumpThreading.h121 BasicBlock *SuccBB);
123 BasicBlock *SuccBB);
165 BasicBlock *NewBB, BasicBlock *SuccBB);
/external/llvm/include/llvm/Transforms/Scalar/
DJumpThreading.h111 BasicBlock *SuccBB);
136 BasicBlock *NewBB, BasicBlock *SuccBB);
/external/llvm/lib/IR/
DBasicBlock.cpp264 BasicBlock *SuccBB = *SI; in getUniqueSuccessor() local
267 if (*SI != SuccBB) in getUniqueSuccessor()
272 return SuccBB; in getUniqueSuccessor()
/external/llvm/lib/Target/X86/
DX86WinEHState.cpp594 for (BasicBlock *SuccBB : successors(BB)) { in getSuccState()
597 auto SuccStartState = InitialStates.find(SuccBB); in getSuccState()
602 if (SuccBB->isEHPad()) in getSuccState()
714 for (BasicBlock *SuccBB : successors(BB)) in addStateStores()
715 Worklist.push_back(SuccBB); in addStateStores()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DBasicBlock.cpp286 const BasicBlock *SuccBB = *SI; in getUniqueSuccessor() local
289 if (*SI != SuccBB) in getUniqueSuccessor()
294 return SuccBB; in getUniqueSuccessor()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86WinEHState.cpp594 for (BasicBlock *SuccBB : successors(BB)) { in getSuccState()
597 auto SuccStartState = InitialStates.find(SuccBB); in getSuccState()
602 if (SuccBB->isEHPad()) in getSuccState()
714 for (BasicBlock *SuccBB : successors(BB)) in addStateStores()
715 Worklist.push_back(SuccBB); in addStateStores()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DLibCallsShrinkWrap.cpp494 BasicBlock *SuccBB = CallBB->getSingleSuccessor(); in shrinkWrapCI() local
495 assert(SuccBB && "The split block should have a single successor"); in shrinkWrapCI()
496 SuccBB->setName("cdce.end"); in shrinkWrapCI()

123