Home
last modified time | relevance | path

Searched refs:ExitBlocks (Results 1 – 16 of 16) sorted by relevance

/external/llvm/lib/Transforms/Utils/
DLCSSA.cpp52 const SmallVectorImpl<BasicBlock *> &ExitBlocks) { in isExitBlock() argument
53 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) in isExitBlock()
54 if (ExitBlocks[i] == BB) in isExitBlock()
63 const SmallVectorImpl<BasicBlock *> &ExitBlocks, in processInstruction() argument
103 for (SmallVectorImpl<BasicBlock *>::const_iterator BBI = ExitBlocks.begin(), in processInstruction()
104 BBE = ExitBlocks.end(); in processInstruction()
148 if (isa<PHINode>(UserBB->begin()) && isExitBlock(UserBB, ExitBlocks)) { in processInstruction()
174 const SmallVectorImpl<BasicBlock *> &ExitBlocks) { in blockDominatesAnExit() argument
176 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) in blockDominatesAnExit()
177 if (DT.dominates(DomNode, DT.getNode(ExitBlocks[i]))) in blockDominatesAnExit()
[all …]
DLoopSimplify.cpp556 SmallVector<BasicBlock*, 8> ExitBlocks; in simplifyOneLoop() local
557 L->getExitBlocks(ExitBlocks); in simplifyOneLoop()
559 SmallSetVector<BasicBlock *, 8> ExitBlockSet(ExitBlocks.begin(), in simplifyOneLoop()
560 ExitBlocks.end()); in simplifyOneLoop()
632 if (!ExitBlocks.empty()) in simplifyOneLoop()
633 for (unsigned i = 1, e = ExitBlocks.size(); i != e; ++i) in simplifyOneLoop()
634 if (ExitBlocks[i] != ExitBlocks[0]) { in simplifyOneLoop()
DCodeExtractor.cpp721 SmallPtrSet<BasicBlock *, 1> ExitBlocks; in extractCodeRegion() local
726 ExitBlocks.insert(*SI); in extractCodeRegion()
727 NumExitBlocks = ExitBlocks.size(); in extractCodeRegion()
/external/llvm/lib/Transforms/Scalar/
DLICM.cpp192 SmallVectorImpl<BasicBlock*> &ExitBlocks,
300 SmallVector<BasicBlock *, 8> ExitBlocks; in runOnLoop() local
307 PromoteAliasSet(*I, ExitBlocks, InsertPts, PIC); in runOnLoop()
585 SmallVector<BasicBlock *, 32> ExitBlocks; in sink() local
586 CurLoop->getUniqueExitBlocks(ExitBlocks); in sink()
587 SmallPtrSet<BasicBlock *, 32> ExitBlockSet(ExitBlocks.begin(), ExitBlocks.end()); in sink()
666 SmallVector<BasicBlock*, 8> ExitBlocks; in isGuaranteedToExecute() local
667 CurLoop->getExitBlocks(ExitBlocks); in isGuaranteedToExecute()
670 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) in isGuaranteedToExecute()
671 if (!DT->dominates(Inst.getParent(), ExitBlocks[i])) in isGuaranteedToExecute()
[all …]
DLoopInstSimplify.cpp80 SmallVector<BasicBlock*, 8> ExitBlocks; in runOnLoop() local
81 L->getUniqueExitBlocks(ExitBlocks); in runOnLoop()
82 array_pod_sort(ExitBlocks.begin(), ExitBlocks.end()); in runOnLoop()
171 bool IsExitBlock = std::binary_search(ExitBlocks.begin(), in runOnLoop()
172 ExitBlocks.end(), SuccBB); in runOnLoop()
DLoopUnswitch.cpp191 void SplitExitEdges(Loop *L, const SmallVectorImpl<BasicBlock *> &ExitBlocks);
750 const SmallVectorImpl<BasicBlock *> &ExitBlocks){ in SplitExitEdges() argument
752 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) { in SplitExitEdges()
753 BasicBlock *ExitBlock = ExitBlocks[i]; in SplitExitEdges()
794 SmallVector<BasicBlock*, 8> ExitBlocks; in UnswitchNontrivialCondition() local
795 L->getUniqueExitBlocks(ExitBlocks); in UnswitchNontrivialCondition()
799 SplitExitEdges(L, ExitBlocks); in UnswitchNontrivialCondition()
802 ExitBlocks.clear(); in UnswitchNontrivialCondition()
803 L->getUniqueExitBlocks(ExitBlocks); in UnswitchNontrivialCondition()
806 LoopBlocks.insert(LoopBlocks.end(), ExitBlocks.begin(), ExitBlocks.end()); in UnswitchNontrivialCondition()
[all …]
DLoopIdiomRecognize.cpp147 SmallVectorImpl<BasicBlock*> &ExitBlocks);
675 SmallVector<BasicBlock*, 8> ExitBlocks; in runOnCountableLoop() local
676 CurLoop->getUniqueExitBlocks(ExitBlocks); in runOnCountableLoop()
690 MadeChange |= runOnLoopBlock(*BI, BECount, ExitBlocks); in runOnCountableLoop()
729 SmallVectorImpl<BasicBlock*> &ExitBlocks) { in runOnLoopBlock() argument
733 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) in runOnLoopBlock()
734 if (!DT->dominates(BB, ExitBlocks[i])) in runOnLoopBlock()
DIndVarSimplify.cpp485 SmallVector<BasicBlock*, 8> ExitBlocks; in RewriteLoopExitValues() local
486 L->getUniqueExitBlocks(ExitBlocks); in RewriteLoopExitValues()
491 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) { in RewriteLoopExitValues()
492 BasicBlock *ExitBB = ExitBlocks[i]; in RewriteLoopExitValues()
/external/llvm/lib/Transforms/IPO/
DLoopExtractor.cpp113 SmallVector<BasicBlock*, 8> ExitBlocks; in runOnLoop() local
114 L->getExitBlocks(ExitBlocks); in runOnLoop()
115 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) in runOnLoop()
116 if (!isa<ReturnInst>(ExitBlocks[i]->getTerminator())) { in runOnLoop()
127 SmallVector<BasicBlock*, 8> ExitBlocks; in runOnLoop() local
128 L->getExitBlocks(ExitBlocks); in runOnLoop()
129 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) in runOnLoop()
130 if (ExitBlocks[i]->isLandingPad()) { in runOnLoop()
/external/llvm/lib/Analysis/
DLoopInfo.cpp336 SmallVector<BasicBlock *, 4> ExitBlocks; in hasDedicatedExits() local
337 getExitBlocks(ExitBlocks); in hasDedicatedExits()
338 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) in hasDedicatedExits()
339 for (pred_iterator PI = pred_begin(ExitBlocks[i]), in hasDedicatedExits()
340 PE = pred_end(ExitBlocks[i]); PI != PE; ++PI) in hasDedicatedExits()
352 Loop::getUniqueExitBlocks(SmallVectorImpl<BasicBlock *> &ExitBlocks) const { in getUniqueExitBlocks()
382 ExitBlocks.push_back(*I); in getUniqueExitBlocks()
392 ExitBlocks.push_back(*I); in getUniqueExitBlocks()
DScalarEvolution.cpp7700 SmallVector<BasicBlock *, 8> ExitBlocks; in PrintLoopInfo() local
7701 L->getExitBlocks(ExitBlocks); in PrintLoopInfo()
7702 if (ExitBlocks.size() != 1) in PrintLoopInfo()
/external/llvm/include/llvm/Analysis/
DLoopInfoImpl.h64 getExitBlocks(SmallVectorImpl<BlockT*> &ExitBlocks) const { in getExitBlocks() argument
72 ExitBlocks.push_back(*I); in getExitBlocks()
79 SmallVector<BlockT*, 8> ExitBlocks; in getExitBlock() local
80 getExitBlocks(ExitBlocks); in getExitBlock()
81 if (ExitBlocks.size() == 1) in getExitBlock()
82 return ExitBlocks[0]; in getExitBlock()
DLoopInfo.h202 void getExitBlocks(SmallVectorImpl<BlockT*> &ExitBlocks) const;
448 void getUniqueExitBlocks(SmallVectorImpl<BasicBlock *> &ExitBlocks) const;
/external/llvm/lib/CodeGen/
DMachineLICM.cpp85 SmallVector<MachineBasicBlock*, 8> ExitBlocks; member in __anon796e1f070111::MachineLICM
88 return std::find(ExitBlocks.begin(), ExitBlocks.end(), MBB) != in isExitBlock()
89 ExitBlocks.end(); in isExitBlock()
363 ExitBlocks.clear(); in runOnMachineFunction()
372 CurLoop->getExitBlocks(ExitBlocks); in runOnMachineFunction()
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/radeon/
DAMDILCFGStructurizer.cpp354 BlockTSmallerVector &ExitBlocks);
/external/mesa3d/src/gallium/drivers/radeon/
DAMDILCFGStructurizer.cpp354 BlockTSmallerVector &ExitBlocks);