Home
last modified time | relevance | path

Searched refs:ExitBlocks (Results 1 – 15 of 15) 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
104 for (SmallVectorImpl<BasicBlock *>::const_iterator BBI = ExitBlocks.begin(), in processInstruction()
105 BBE = ExitBlocks.end(); in processInstruction()
161 if (isa<PHINode>(UserBB->begin()) && isExitBlock(UserBB, ExitBlocks)) { in processInstruction()
206 const SmallVectorImpl<BasicBlock *> &ExitBlocks) { in blockDominatesAnExit() argument
208 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) in blockDominatesAnExit()
209 if (DT.dominates(DomNode, DT.getNode(ExitBlocks[i]))) in blockDominatesAnExit()
[all …]
DLoopSimplify.cpp560 SmallVector<BasicBlock*, 8> ExitBlocks; in simplifyOneLoop() local
561 L->getExitBlocks(ExitBlocks); in simplifyOneLoop()
563 SmallSetVector<BasicBlock *, 8> ExitBlockSet(ExitBlocks.begin(), in simplifyOneLoop()
564 ExitBlocks.end()); in simplifyOneLoop()
639 if (!ExitBlocks.empty()) in simplifyOneLoop()
640 for (unsigned i = 1, e = ExitBlocks.size(); i != e; ++i) in simplifyOneLoop()
641 if (ExitBlocks[i] != ExitBlocks[0]) { in simplifyOneLoop()
DCodeExtractor.cpp719 SmallPtrSet<BasicBlock *, 1> ExitBlocks; in extractCodeRegion() local
724 ExitBlocks.insert(*SI); in extractCodeRegion()
725 NumExitBlocks = ExitBlocks.size(); in extractCodeRegion()
/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/Transforms/Scalar/
DLoopInstSimplify.cpp85 SmallVector<BasicBlock*, 8> ExitBlocks; in runOnLoop() local
86 L->getUniqueExitBlocks(ExitBlocks); in runOnLoop()
87 array_pod_sort(ExitBlocks.begin(), ExitBlocks.end()); in runOnLoop()
177 bool IsExitBlock = std::binary_search(ExitBlocks.begin(), in runOnLoop()
178 ExitBlocks.end(), SuccBB); in runOnLoop()
DLICM.cpp244 SmallVector<BasicBlock *, 8> ExitBlocks; in runOnLoop() local
251 Changed |= promoteLoopAccessesToScalars(*I, ExitBlocks, InsertPts, in runOnLoop()
580 SmallVector<BasicBlock *, 32> ExitBlocks; in sink() local
581 CurLoop->getUniqueExitBlocks(ExitBlocks); in sink()
582 SmallPtrSet<BasicBlock *, 32> ExitBlockSet(ExitBlocks.begin(), in sink()
583 ExitBlocks.end()); in sink()
671 SmallVector<BasicBlock*, 8> ExitBlocks; in isGuaranteedToExecute() local
672 CurLoop->getExitBlocks(ExitBlocks); in isGuaranteedToExecute()
675 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) in isGuaranteedToExecute()
676 if (!DT->dominates(Inst.getParent(), ExitBlocks[i])) in isGuaranteedToExecute()
[all …]
DLoopUnswitch.cpp196 void SplitExitEdges(Loop *L, const SmallVectorImpl<BasicBlock *> &ExitBlocks);
764 const SmallVectorImpl<BasicBlock *> &ExitBlocks){ in SplitExitEdges() argument
766 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) { in SplitExitEdges()
767 BasicBlock *ExitBlock = ExitBlocks[i]; in SplitExitEdges()
804 SmallVector<BasicBlock*, 8> ExitBlocks; in UnswitchNontrivialCondition() local
805 L->getUniqueExitBlocks(ExitBlocks); in UnswitchNontrivialCondition()
809 SplitExitEdges(L, ExitBlocks); in UnswitchNontrivialCondition()
812 ExitBlocks.clear(); in UnswitchNontrivialCondition()
813 L->getUniqueExitBlocks(ExitBlocks); in UnswitchNontrivialCondition()
816 LoopBlocks.insert(LoopBlocks.end(), ExitBlocks.begin(), ExitBlocks.end()); in UnswitchNontrivialCondition()
[all …]
DLoopIdiomRecognize.cpp149 SmallVectorImpl<BasicBlock*> &ExitBlocks);
631 SmallVector<BasicBlock*, 8> ExitBlocks; in runOnCountableLoop() local
632 CurLoop->getUniqueExitBlocks(ExitBlocks); in runOnCountableLoop()
646 MadeChange |= runOnLoopBlock(*BI, BECount, ExitBlocks); in runOnCountableLoop()
685 SmallVectorImpl<BasicBlock*> &ExitBlocks) { in runOnLoopBlock() argument
689 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) in runOnLoopBlock()
690 if (!DT->dominates(BB, ExitBlocks[i])) in runOnLoopBlock()
DIndVarSimplify.cpp486 SmallVector<BasicBlock*, 8> ExitBlocks; in RewriteLoopExitValues() local
487 L->getUniqueExitBlocks(ExitBlocks); in RewriteLoopExitValues()
492 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) { in RewriteLoopExitValues()
493 BasicBlock *ExitBB = ExitBlocks[i]; in RewriteLoopExitValues()
/external/llvm/lib/Analysis/
DLoopInfo.cpp335 SmallVector<BasicBlock *, 4> ExitBlocks; in hasDedicatedExits() local
336 getExitBlocks(ExitBlocks); in hasDedicatedExits()
337 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) in hasDedicatedExits()
338 for (pred_iterator PI = pred_begin(ExitBlocks[i]), in hasDedicatedExits()
339 PE = pred_end(ExitBlocks[i]); PI != PE; ++PI) in hasDedicatedExits()
351 Loop::getUniqueExitBlocks(SmallVectorImpl<BasicBlock *> &ExitBlocks) const { in getUniqueExitBlocks()
381 ExitBlocks.push_back(*I); in getUniqueExitBlocks()
391 ExitBlocks.push_back(*I); in getUniqueExitBlocks()
DScalarEvolution.cpp8097 SmallVector<BasicBlock *, 8> ExitBlocks; in PrintLoopInfo() local
8098 L->getExitBlocks(ExitBlocks); in PrintLoopInfo()
8099 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.h207 void getExitBlocks(SmallVectorImpl<BlockT*> &ExitBlocks) const;
453 void getUniqueExitBlocks(SmallVectorImpl<BasicBlock *> &ExitBlocks) const;
/external/llvm/lib/CodeGen/
DMachineLICM.cpp92 SmallVector<MachineBasicBlock*, 8> ExitBlocks; member in __anon19b931500111::MachineLICM
95 return std::find(ExitBlocks.begin(), ExitBlocks.end(), MBB) != in isExitBlock()
96 ExitBlocks.end(); in isExitBlock()
375 ExitBlocks.clear(); in runOnMachineFunction()
384 CurLoop->getExitBlocks(ExitBlocks); in runOnMachineFunction()
/external/mesa3d/src/gallium/drivers/radeon/
DAMDILCFGStructurizer.cpp354 BlockTSmallerVector &ExitBlocks);