| /freebsd-9-stable/contrib/llvm/lib/Transforms/Utils/ |
| D | LCSSA.cpp | 79 const SmallVectorImpl<BasicBlock*> &ExitBlocks); 102 const SmallVectorImpl<BasicBlock*> &ExitBlocks, in BlockDominatesAnExit() argument 105 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) in BlockDominatesAnExit() 106 if (DT->dominates(DomNode, DT->getNode(ExitBlocks[i]))) in BlockDominatesAnExit() 122 SmallVector<BasicBlock*, 8> ExitBlocks; in runOnLoop() local 123 L->getExitBlocks(ExitBlocks); in runOnLoop() 125 if (ExitBlocks.empty()) in runOnLoop() 139 if (!BlockDominatesAnExit(BB, ExitBlocks, DT)) in runOnLoop() 151 MadeChange |= ProcessInstruction(I, ExitBlocks); in runOnLoop() 169 const SmallVectorImpl<BasicBlock*> &ExitBlocks) { in isExitBlock() argument [all …]
|
| D | LoopSimplify.cpp | 223 SmallVector<BasicBlock*, 8> ExitBlocks; in ProcessLoop() local 224 L->getExitBlocks(ExitBlocks); in ProcessLoop() 226 SmallSetVector<BasicBlock *, 8> ExitBlockSet(ExitBlocks.begin(), in ProcessLoop() 227 ExitBlocks.end()); in ProcessLoop() 294 if (!ExitBlocks.empty()) in ProcessLoop() 295 for (unsigned i = 1, e = ExitBlocks.size(); i != e; ++i) in ProcessLoop() 296 if (ExitBlocks[i] != ExitBlocks[0]) { in ProcessLoop()
|
| D | BreakCriticalEdges.cpp | 315 SmallVector<BasicBlock *, 4> ExitBlocks; in SplitCriticalEdge() local 316 TIL->getExitBlocks(ExitBlocks); in SplitCriticalEdge() 317 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) { in SplitCriticalEdge() 322 BasicBlock *Exit = ExitBlocks[i]; in SplitCriticalEdge()
|
| D | CodeExtractor.cpp | 721 SmallPtrSet<BasicBlock *, 1> ExitBlocks; in extractCodeRegion() local 726 ExitBlocks.insert(*SI); in extractCodeRegion() 727 NumExitBlocks = ExitBlocks.size(); in extractCodeRegion()
|
| /freebsd-9-stable/contrib/llvm/lib/Transforms/Scalar/ |
| D | LICM.cpp | 185 SmallVectorImpl<BasicBlock*> &ExitBlocks, 276 SmallVector<BasicBlock *, 8> ExitBlocks; in runOnLoop() local 282 PromoteAliasSet(*I, ExitBlocks, InsertPts); in runOnLoop() 482 SmallVector<BasicBlock*, 8> ExitBlocks; in sink() local 483 CurLoop->getUniqueExitBlocks(ExitBlocks); in sink() 493 if (ExitBlocks.size() == 1) { in sink() 494 if (!DT->dominates(I.getParent(), ExitBlocks[0])) { in sink() 506 I.moveBefore(ExitBlocks[0]->getFirstInsertionPt()); in sink() 516 if (ExitBlocks.empty()) { in sink() 542 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) { in sink() [all …]
|
| D | LoopInstSimplify.cpp | 73 SmallVector<BasicBlock*, 8> ExitBlocks; in runOnLoop() local 74 L->getUniqueExitBlocks(ExitBlocks); in runOnLoop() 75 array_pod_sort(ExitBlocks.begin(), ExitBlocks.end()); in runOnLoop() 157 bool IsExitBlock = std::binary_search(ExitBlocks.begin(), in runOnLoop() 158 ExitBlocks.end(), SuccBB); in runOnLoop()
|
| D | LoopUnswitch.cpp | 199 void SplitExitEdges(Loop *L, const SmallVectorImpl<BasicBlock *> &ExitBlocks); 754 const SmallVectorImpl<BasicBlock *> &ExitBlocks){ in SplitExitEdges() argument 756 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) { in SplitExitEdges() 757 BasicBlock *ExitBlock = ExitBlocks[i]; in SplitExitEdges() 798 SmallVector<BasicBlock*, 8> ExitBlocks; in UnswitchNontrivialCondition() local 799 L->getUniqueExitBlocks(ExitBlocks); in UnswitchNontrivialCondition() 803 SplitExitEdges(L, ExitBlocks); in UnswitchNontrivialCondition() 806 ExitBlocks.clear(); in UnswitchNontrivialCondition() 807 L->getUniqueExitBlocks(ExitBlocks); in UnswitchNontrivialCondition() 810 LoopBlocks.insert(LoopBlocks.end(), ExitBlocks.begin(), ExitBlocks.end()); in UnswitchNontrivialCondition() [all …]
|
| D | LoopIdiomRecognize.cpp | 148 SmallVectorImpl<BasicBlock*> &ExitBlocks); 679 SmallVector<BasicBlock*, 8> ExitBlocks; in runOnCountableLoop() local 680 CurLoop->getUniqueExitBlocks(ExitBlocks); in runOnCountableLoop() 694 MadeChange |= runOnLoopBlock(*BI, BECount, ExitBlocks); in runOnCountableLoop() 730 SmallVectorImpl<BasicBlock*> &ExitBlocks) { in runOnLoopBlock() argument 734 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) in runOnLoopBlock() 735 if (!DT->dominates(BB, ExitBlocks[i])) in runOnLoopBlock()
|
| D | IndVarSimplify.cpp | 481 SmallVector<BasicBlock*, 8> ExitBlocks; in RewriteLoopExitValues() local 482 L->getUniqueExitBlocks(ExitBlocks); in RewriteLoopExitValues() 487 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) { in RewriteLoopExitValues() 488 BasicBlock *ExitBB = ExitBlocks[i]; in RewriteLoopExitValues()
|
| /freebsd-9-stable/contrib/llvm/lib/Transforms/IPO/ |
| D | LoopExtractor.cpp | 109 SmallVector<BasicBlock*, 8> ExitBlocks; in runOnLoop() local 110 L->getExitBlocks(ExitBlocks); in runOnLoop() 111 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) in runOnLoop() 112 if (!isa<ReturnInst>(ExitBlocks[i]->getTerminator())) { in runOnLoop() 123 SmallVector<BasicBlock*, 8> ExitBlocks; in runOnLoop() local 124 L->getExitBlocks(ExitBlocks); in runOnLoop() 125 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) in runOnLoop() 126 if (ExitBlocks[i]->isLandingPad()) { in runOnLoop()
|
| /freebsd-9-stable/contrib/llvm/lib/Analysis/ |
| D | LoopInfo.cpp | 338 SmallVector<BasicBlock *, 4> ExitBlocks; in hasDedicatedExits() local 339 getExitBlocks(ExitBlocks); in hasDedicatedExits() 340 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) in hasDedicatedExits() 341 for (pred_iterator PI = pred_begin(ExitBlocks[i]), in hasDedicatedExits() 342 PE = pred_end(ExitBlocks[i]); PI != PE; ++PI) in hasDedicatedExits() 354 Loop::getUniqueExitBlocks(SmallVectorImpl<BasicBlock *> &ExitBlocks) const { in getUniqueExitBlocks() 384 ExitBlocks.push_back(*I); in getUniqueExitBlocks() 394 ExitBlocks.push_back(*I); in getUniqueExitBlocks()
|
| D | ScalarEvolution.cpp | 7327 SmallVector<BasicBlock *, 8> ExitBlocks; in PrintLoopInfo() local 7328 L->getExitBlocks(ExitBlocks); in PrintLoopInfo() 7329 if (ExitBlocks.size() != 1) in PrintLoopInfo()
|
| /freebsd-9-stable/contrib/llvm/include/llvm/Analysis/ |
| D | LoopInfoImpl.h | 62 getExitBlocks(SmallVectorImpl<BlockT*> &ExitBlocks) const { in getExitBlocks() argument 70 ExitBlocks.push_back(*I); in getExitBlocks() 77 SmallVector<BlockT*, 8> ExitBlocks; in getExitBlock() local 78 getExitBlocks(ExitBlocks); in getExitBlock() 79 if (ExitBlocks.size() == 1) in getExitBlock() 80 return ExitBlocks[0]; in getExitBlock()
|
| D | LoopInfo.h | 199 void getExitBlocks(SmallVectorImpl<BlockT*> &ExitBlocks) const; 433 void getUniqueExitBlocks(SmallVectorImpl<BasicBlock *> &ExitBlocks) const;
|
| /freebsd-9-stable/contrib/llvm/lib/CodeGen/ |
| D | MachineLICM.cpp | 84 SmallVector<MachineBasicBlock*, 8> ExitBlocks; member in __anon0cec8a4e0111::MachineLICM 87 return std::find(ExitBlocks.begin(), ExitBlocks.end(), MBB) != in isExitBlock() 88 ExitBlocks.end(); in isExitBlock() 359 ExitBlocks.clear(); in runOnMachineFunction() 368 CurLoop->getExitBlocks(ExitBlocks); in runOnMachineFunction()
|