/external/llvm/lib/Transforms/Utils/ |
D | LCSSA.cpp | 54 const SmallVectorImpl<BasicBlock *> &ExitBlocks) { in isExitBlock() argument 55 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) in isExitBlock() 56 if (ExitBlocks[i] == BB) in isExitBlock() 65 const SmallVectorImpl<BasicBlock *> &ExitBlocks, in processInstruction() argument 112 for (BasicBlock *ExitBB : ExitBlocks) { in processInstruction() 166 if (isa<PHINode>(UserBB->begin()) && isExitBlock(UserBB, ExitBlocks)) { in processInstruction() 210 const SmallVectorImpl<BasicBlock *> &ExitBlocks) { in blockDominatesAnExit() argument 212 for (BasicBlock *ExitBB : ExitBlocks) in blockDominatesAnExit() 224 SmallVector<BasicBlock *, 8> ExitBlocks; in formLCSSA() local 225 L.getExitBlocks(ExitBlocks); in formLCSSA() [all …]
|
D | LoopSimplify.cpp | 543 SmallVector<BasicBlock*, 8> ExitBlocks; in simplifyOneLoop() local 544 L->getExitBlocks(ExitBlocks); in simplifyOneLoop() 546 SmallSetVector<BasicBlock *, 8> ExitBlockSet(ExitBlocks.begin(), in simplifyOneLoop() 547 ExitBlocks.end()); in simplifyOneLoop() 621 if (!ExitBlocks.empty()) in simplifyOneLoop() 622 for (unsigned i = 1, e = ExitBlocks.size(); i != e; ++i) in simplifyOneLoop() 623 if (ExitBlocks[i] != ExitBlocks[0]) { in simplifyOneLoop()
|
D | LoopUnroll.cpp | 219 SmallVector<BasicBlock *, 4> ExitBlocks; in UnrollLoop() local 220 L->getExitBlocks(ExitBlocks); in UnrollLoop() 223 std::all_of(ExitBlocks.begin(), ExitBlocks.end(), in UnrollLoop()
|
D | CodeExtractor.cpp | 723 SmallPtrSet<BasicBlock *, 1> ExitBlocks; in extractCodeRegion() local 728 ExitBlocks.insert(*SI); in extractCodeRegion() 729 NumExitBlocks = ExitBlocks.size(); in extractCodeRegion()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopInstSimplify.cpp | 85 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()
|
D | LICM.cpp | 259 SmallVector<BasicBlock *, 8> ExitBlocks; in runOnLoop() local 266 Changed |= promoteLoopAccessesToScalars(*I, ExitBlocks, InsertPts, in runOnLoop() 613 SmallVector<BasicBlock *, 32> ExitBlocks; in sink() local 614 CurLoop->getUniqueExitBlocks(ExitBlocks); in sink() 615 SmallPtrSet<BasicBlock *, 32> ExitBlockSet(ExitBlocks.begin(), in sink() 616 ExitBlocks.end()); in sink() 723 SmallVector<BasicBlock*, 8> ExitBlocks; in isGuaranteedToExecute() local 724 CurLoop->getExitBlocks(ExitBlocks); in isGuaranteedToExecute() 727 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) in isGuaranteedToExecute() 728 if (!DT->dominates(Inst.getParent(), ExitBlocks[i])) in isGuaranteedToExecute() [all …]
|
D | LoopUnswitch.cpp | 241 const SmallVectorImpl<BasicBlock *> &ExitBlocks); 952 const SmallVectorImpl<BasicBlock *> &ExitBlocks){ in SplitExitEdges() argument 954 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) { in SplitExitEdges() 955 BasicBlock *ExitBlock = ExitBlocks[i]; in SplitExitEdges() 991 SmallVector<BasicBlock*, 8> ExitBlocks; in UnswitchNontrivialCondition() local 992 L->getUniqueExitBlocks(ExitBlocks); in UnswitchNontrivialCondition() 996 SplitExitEdges(L, ExitBlocks); in UnswitchNontrivialCondition() 999 ExitBlocks.clear(); in UnswitchNontrivialCondition() 1000 L->getUniqueExitBlocks(ExitBlocks); in UnswitchNontrivialCondition() 1003 LoopBlocks.insert(LoopBlocks.end(), ExitBlocks.begin(), ExitBlocks.end()); in UnswitchNontrivialCondition() [all …]
|
D | LoopIdiomRecognize.cpp | 118 SmallVectorImpl<BasicBlock *> &ExitBlocks); 228 SmallVector<BasicBlock *, 8> ExitBlocks; in runOnCountableLoop() local 229 CurLoop->getUniqueExitBlocks(ExitBlocks); in runOnCountableLoop() 242 MadeChange |= runOnLoopBlock(BB, BECount, ExitBlocks); in runOnCountableLoop() 349 SmallVectorImpl<BasicBlock *> &ExitBlocks) { in runOnLoopBlock() argument 353 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) in runOnLoopBlock() 354 if (!DT->dominates(BB, ExitBlocks[i])) in runOnLoopBlock()
|
D | IndVarSimplify.cpp | 546 SmallVector<BasicBlock*, 8> ExitBlocks; in rewriteLoopExitValues() local 547 L->getUniqueExitBlocks(ExitBlocks); in rewriteLoopExitValues() 553 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) { in rewriteLoopExitValues() 554 BasicBlock *ExitBB = ExitBlocks[i]; in rewriteLoopExitValues() 732 SmallVector<BasicBlock *, 8> ExitBlocks; in canLoopBeDeleted() local 733 L->getUniqueExitBlocks(ExitBlocks); in canLoopBeDeleted() 734 if (ExitBlocks.size() > 1 || ExitingBlocks.size() > 1) in canLoopBeDeleted() 737 BasicBlock *ExitBlock = ExitBlocks[0]; in canLoopBeDeleted()
|
/external/llvm/lib/Transforms/IPO/ |
D | LoopExtractor.cpp | 115 SmallVector<BasicBlock*, 8> ExitBlocks; in runOnLoop() local 116 L->getExitBlocks(ExitBlocks); in runOnLoop() 117 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) in runOnLoop() 118 if (!isa<ReturnInst>(ExitBlocks[i]->getTerminator())) { in runOnLoop() 129 SmallVector<BasicBlock*, 8> ExitBlocks; in runOnLoop() local 130 L->getExitBlocks(ExitBlocks); in runOnLoop() 131 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) in runOnLoop() 132 if (ExitBlocks[i]->isEHPad()) { in runOnLoop()
|
/external/llvm/lib/Analysis/ |
D | LoopInfo.cpp | 362 SmallVector<BasicBlock *, 4> ExitBlocks; in hasDedicatedExits() local 363 getExitBlocks(ExitBlocks); in hasDedicatedExits() 364 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) in hasDedicatedExits() 365 for (pred_iterator PI = pred_begin(ExitBlocks[i]), in hasDedicatedExits() 366 PE = pred_end(ExitBlocks[i]); PI != PE; ++PI) in hasDedicatedExits() 378 Loop::getUniqueExitBlocks(SmallVectorImpl<BasicBlock *> &ExitBlocks) const { in getUniqueExitBlocks() 408 ExitBlocks.push_back(*I); in getUniqueExitBlocks() 418 ExitBlocks.push_back(*I); in getUniqueExitBlocks()
|
D | ScalarEvolution.cpp | 9112 SmallVector<BasicBlock *, 8> ExitBlocks; in PrintLoopInfo() local 9113 L->getExitBlocks(ExitBlocks); in PrintLoopInfo() 9114 if (ExitBlocks.size() != 1) in PrintLoopInfo()
|
/external/llvm/include/llvm/Analysis/ |
D | LoopInfoImpl.h | 64 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()
|
D | LoopInfo.h | 215 void getExitBlocks(SmallVectorImpl<BlockT*> &ExitBlocks) const; 465 void getUniqueExitBlocks(SmallVectorImpl<BasicBlock *> &ExitBlocks) const;
|
/external/llvm/lib/CodeGen/ |
D | ShrinkWrap.cpp | 365 SmallVector<MachineBasicBlock*, 4> ExitBlocks; in updateSaveRestorePoints() local 366 MLI->getLoopFor(Restore)->getExitingBlocks(ExitBlocks); in updateSaveRestorePoints() 370 for (MachineBasicBlock *LoopExitBB: ExitBlocks) { in updateSaveRestorePoints()
|
D | MachineLICM.cpp | 92 SmallVector<MachineBasicBlock*, 8> ExitBlocks; member in __anon9dedcdf10111::MachineLICM 95 return std::find(ExitBlocks.begin(), ExitBlocks.end(), MBB) != in isExitBlock() 96 ExitBlocks.end(); in isExitBlock() 302 ExitBlocks.clear(); in runOnMachineFunction() 311 CurLoop->getExitBlocks(ExitBlocks); in runOnMachineFunction()
|
/external/mesa3d/src/gallium/drivers/radeon/ |
D | AMDILCFGStructurizer.cpp | 354 BlockTSmallerVector &ExitBlocks);
|