Home
last modified time | relevance | path

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

123

/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DLoopInstSimplify.cpp131 BasicBlock *SuccBB = *SI; in runOnLoop() local
132 if (!Visited.insert(SuccBB)) in runOnLoop()
135 const Loop *SuccLoop = LI->getLoopFor(SuccBB); in runOnLoop()
136 if (SuccLoop && SuccLoop->getHeader() == SuccBB in runOnLoop()
138 VisitStack.push_back(WorklistItem(SuccBB, true)); in runOnLoop()
153 ExitBlocks.end(), SuccBB); in runOnLoop()
157 VisitStack.push_back(WorklistItem(SuccBB, false)); in runOnLoop()
/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 …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DIteratedDominanceFrontier.cpp79 BasicBlock *SuccBB = SuccNode->getBlock(); in calculate() local
80 if (useLiveIn && !LiveInBlocks->count(SuccBB)) in calculate()
83 PHIBlocks.emplace_back(SuccBB); in calculate()
84 if (!DefBlocks->count(SuccBB)) in calculate()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DSimpleLoopUnswitch.cpp529 auto *SuccBB = Case.getCaseSuccessor(); in unswitchTrivialSwitch() local
530 if (!L.contains(SuccBB) && in unswitchTrivialSwitch()
531 areLoopExitPHIsLoopInvariant(L, *ParentBB, *SuccBB)) in unswitchTrivialSwitch()
980 for (auto *SuccBB : successors(LoopBB)) in buildClonedLoopBlocks() local
981 if (auto *ClonedSuccBB = cast_or_null<BasicBlock>(VMap.lookup(SuccBB))) in buildClonedLoopBlocks()
988 for (auto *SuccBB : successors(ParentBB)) { in buildClonedLoopBlocks() local
989 if (SuccBB == UnswitchedSuccBB) in buildClonedLoopBlocks()
992 auto *ClonedSuccBB = cast_or_null<BasicBlock>(VMap.lookup(SuccBB)); in buildClonedLoopBlocks()
1027 for (auto *SuccBB : successors(ClonedBB)) in buildClonedLoopBlocks() local
1028 if (SuccSet.insert(SuccBB).second) in buildClonedLoopBlocks()
[all …]
DJumpThreading.cpp219 auto *SuccBB = PhiBB; in updatePredecessorProfileMetadata() local
223 return {PredBB, SuccBB}; in updatePredecessorProfileMetadata()
227 SuccBB = PredBB; in updatePredecessorProfileMetadata()
1657 for (BasicBlock *SuccBB : successors(BB)) { in ProcessThreadableEdges()
1658 if (SuccBB == OnlyDest && !SeenFirstBranchToOnlyDest) { in ProcessThreadableEdges()
1661 SuccBB->removePredecessor(BB, true); // This is unreachable successor. in ProcessThreadableEdges()
1662 Updates.push_back({DominatorTree::Delete, BB, SuccBB}); in ProcessThreadableEdges()
1902 BasicBlock *SuccBB) { in ThreadEdge() argument
1904 if (SuccBB == BB) { in ThreadEdge()
1912 if (LoopHeaders.count(BB) || LoopHeaders.count(SuccBB)) { in ThreadEdge()
[all …]
/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-7.0/llvm/lib/CodeGen/
DBranchFolding.cpp510 static void FixTail(MachineBasicBlock *CurMBB, MachineBasicBlock *SuccBB, in FixTail() argument
522 TII->insertBranch(*CurMBB, SuccBB, nullptr, Cond, dl); in FixTail()
527 TII->insertBranch(*CurMBB, SuccBB, nullptr, in FixTail()
636 MachineBasicBlock::iterator &I2, MachineBasicBlock *SuccBB, in ProfitableToMerge() argument
710 if (SuccBB && MBB1 != PredBB && MBB2 != PredBB && in ProfitableToMerge()
731 MachineBasicBlock *SuccBB, in ComputeSameTails() argument
745 SuccBB, PredBB, in ComputeSameTails()
766 MachineBasicBlock *SuccBB, in RemoveBlocksWithHash() argument
774 if (SuccBB && CurMBB != PredBB) in RemoveBlocksWithHash()
775 FixTail(CurMBB, SuccBB, TII); in RemoveBlocksWithHash()
[all …]
DBranchFolding.h160 bool TryTailMergeBlocks(MachineBasicBlock* SuccBB,
187 MachineBasicBlock *SuccBB,
192 void RemoveBlocksWithHash(unsigned CurHash, MachineBasicBlock* SuccBB,
198 MachineBasicBlock *SuccBB,
DMachineSink.cpp1056 static void updateLiveIn(MachineInstr *MI, MachineBasicBlock *SuccBB, in updateLiveIn() argument
1060 SuccBB->removeLiveIn(DefReg); in updateLiveIn()
1063 if (!SuccBB->isLiveIn(Reg)) in updateLiveIn()
1064 SuccBB->addLiveIn(Reg); in updateLiveIn()
1156 MachineBasicBlock *SuccBB = in tryToSinkCopy() local
1160 if (!SuccBB) { in tryToSinkCopy()
1165 assert((SuccBB->pred_size() == 1 && *SuccBB->pred_begin() == &CurBB) && in tryToSinkCopy()
1171 MachineBasicBlock::iterator InsertPos = SuccBB->getFirstNonPHI(); in tryToSinkCopy()
1172 performSink(*MI, *SuccBB, InsertPos); in tryToSinkCopy()
1173 updateLiveIn(MI, SuccBB, UsedOpsInCopy, DefedRegsInCopy); in tryToSinkCopy()
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/lib/CodeGen/
DBranchFolding.cpp450 static void FixTail(MachineBasicBlock *CurMBB, MachineBasicBlock *SuccBB, in FixTail() argument
463 TII->InsertBranch(*CurMBB, SuccBB, NULL, Cond, dl); in FixTail()
468 TII->InsertBranch(*CurMBB, SuccBB, NULL, in FixTail()
521 MachineBasicBlock *SuccBB, in ProfitableToMerge() argument
552 if (SuccBB && MBB1 != PredBB && MBB2 != PredBB && in ProfitableToMerge()
586 MachineBasicBlock *SuccBB, in ComputeSameTails() argument
601 SuccBB, PredBB)) { in ComputeSameTails()
622 MachineBasicBlock *SuccBB, in RemoveBlocksWithHash() argument
630 if (SuccBB && CurMBB != PredBB) in RemoveBlocksWithHash()
631 FixTail(CurMBB, SuccBB, TII); in RemoveBlocksWithHash()
[all …]
DBranchFolding.h96 bool TryTailMergeBlocks(MachineBasicBlock* SuccBB,
105 MachineBasicBlock *SuccBB,
107 void RemoveBlocksWithHash(unsigned CurHash, MachineBasicBlock* SuccBB,
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Mips/
DMipsDelaySlotFiller.cpp126 const MachineBasicBlock &SuccBB);
406 const MachineBasicBlock &SuccBB) { in addLiveOut() argument
409 if (*SI != &SuccBB) in addLiveOut()
792 MachineBasicBlock *SuccBB = selectSuccBB(MBB); in searchSuccBBs() local
794 if (!SuccBB) in searchSuccBBs()
805 for (MachineBasicBlock::pred_iterator PI = SuccBB->pred_begin(), in searchSuccBBs()
806 PE = SuccBB->pred_end(); PI != PE; ++PI) in searchSuccBBs()
807 if (!examinePred(**PI, *SuccBB, RegDU, HasMultipleSuccs, BrMap)) in searchSuccBBs()
823 if (!searchRange(MBB, SuccBB->begin(), SuccBB->end(), RegDU, *IM, Slot, in searchSuccBBs()
828 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/lib/CodeGen/SelectionDAG/
DFunctionLoweringInfo.cpp428 void llvm::CopyCatchInfo(const BasicBlock *SuccBB, const BasicBlock *LPad, in CopyCatchInfo() argument
435 while (Visited.insert(SuccBB)) { in CopyCatchInfo()
436 for (BasicBlock::const_iterator I = SuccBB->begin(), E = --SuccBB->end(); in CopyCatchInfo()
442 if (!FLI.MBBMap[SuccBB]->isLandingPad()) in CopyCatchInfo()
448 const BranchInst *Br = dyn_cast<BranchInst>(SuccBB->getTerminator()); in CopyCatchInfo()
450 SuccBB = Br->getSuccessor(0); in CopyCatchInfo()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DLoopUnrollRuntime.cpp796 for (BasicBlock *SuccBB : successors(BB)) { in UnrollRuntimeLoopRemainder()
798 [SuccBB](BasicBlock *EB) { return EB == SuccBB; }) || in UnrollRuntimeLoopRemainder()
799 SuccBB == LatchExit) && in UnrollRuntimeLoopRemainder()
815 for (BasicBlock *SuccBB: successors(BB)) in UnrollRuntimeLoopRemainder()
816 if (ImmediateSuccessorsOfExitBlocks.insert(SuccBB).second) { in UnrollRuntimeLoopRemainder()
817 if (DT->getNode(SuccBB)->getIDom()->getBlock() == Header) { in UnrollRuntimeLoopRemainder()
818 assert(!SuccBB->getSinglePredecessor() && in UnrollRuntimeLoopRemainder()
820 DT->changeImmediateDominator(SuccBB, PreHeader); in UnrollRuntimeLoopRemainder()
/external/llvm/include/llvm/Transforms/Scalar/
DJumpThreading.h111 BasicBlock *SuccBB);
136 BasicBlock *NewBB, BasicBlock *SuccBB);
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Scalar/
DJumpThreading.h126 BasicBlock *SuccBB);
154 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/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DBasicBlock.cpp273 const BasicBlock *SuccBB = *SI; in getUniqueSuccessor() local
276 if (*SI != SuccBB) in getUniqueSuccessor()
281 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()

123