/openbsd/gnu/llvm/llvm/lib/Transforms/Utils/ |
H A D | LCSSA.cpp | 71 const SmallVectorImpl<BasicBlock *> &ExitBlocks) { in isExitBlock() argument 72 return is_contained(ExitBlocks, BB); in isExitBlock() 105 const SmallVectorImpl<BasicBlock *> &ExitBlocks = LoopExitBlocks[L]; in formLCSSAForInstructions() local 107 if (ExitBlocks.empty()) in formLCSSAForInstructions() 160 for (BasicBlock *ExitBB : ExitBlocks) { in formLCSSAForInstructions() 224 if (isa<PHINode>(UserBB->begin()) && isExitBlock(UserBB, ExitBlocks)) { in formLCSSAForInstructions() 304 SmallVector<BasicBlock *, 8> BBWorklist(ExitBlocks); in computeBlocksDominatingExits() 353 SmallVector<BasicBlock *, 8> ExitBlocks; in formLCSSA() local 354 L.getExitBlocks(ExitBlocks); in formLCSSA() 355 if (ExitBlocks.empty()) in formLCSSA() [all …]
|
H A D | LoopUtils.cpp | 1206 SmallVector<BasicBlock *, 8> ExitBlocks; in canLoopBeDeleted() local 1207 L->getUniqueExitBlocks(ExitBlocks); in canLoopBeDeleted() 1208 if (ExitBlocks.size() != 1 || ExitingBlocks.size() != 1) in canLoopBeDeleted() 1211 BasicBlock *ExitBlock = ExitBlocks[0]; in canLoopBeDeleted() 1269 SmallVector<BasicBlock*, 8> ExitBlocks; in rewriteLoopExitValues() local 1270 L->getUniqueExitBlocks(ExitBlocks); in rewriteLoopExitValues() 1276 for (BasicBlock *ExitBB : ExitBlocks) { in rewriteLoopExitValues()
|
H A D | LoopUnroll.cpp | 307 SmallVector<BasicBlock *, 4> ExitBlocks; in UnrollLoop() local 308 L->getExitBlocks(ExitBlocks); in UnrollLoop() 375 any_of(ExitBlocks, in UnrollLoop()
|
H A D | LoopPeel.cpp | 463 SmallVector<BasicBlock *, 4> ExitBlocks; in violatesLegacyMultiExitLoopCheck() local 464 L->getUniqueNonLatchExitBlocks(ExitBlocks); in violatesLegacyMultiExitLoopCheck() 465 return any_of(ExitBlocks, [](const BasicBlock *EB) { in violatesLegacyMultiExitLoopCheck()
|
H A D | CodeExtractor.cpp | 1685 SmallPtrSet<BasicBlock *, 1> ExitBlocks; in extractCodeRegion() local 1694 ExitBlocks.insert(Succ); in extractCodeRegion() 1698 NumExitBlocks = ExitBlocks.size(); in extractCodeRegion() 1712 severSplitPHINodesOfExits(ExitBlocks); in extractCodeRegion() 1822 for (BasicBlock *ExitBB : ExitBlocks) in extractCodeRegion()
|
/openbsd/gnu/llvm/llvm/include/llvm/Analysis/ |
H A D | MemorySSAUpdater.h | 104 ArrayRef<BasicBlock *> ExitBlocks, 113 void updateExitBlocksForClonedLoop(ArrayRef<BasicBlock *> ExitBlocks, 117 ArrayRef<BasicBlock *> ExitBlocks, 283 void privateUpdateExitBlocksForClonedLoop(ArrayRef<BasicBlock *> ExitBlocks,
|
H A D | LoopInfoImpl.h | 65 SmallVectorImpl<BlockT *> &ExitBlocks) const { in getExitBlocks() argument 71 ExitBlocks.push_back(Succ); in getExitBlocks() 129 SmallVectorImpl<BlockT *> &ExitBlocks, in getUniqueExitBlocksHelper() argument 138 ExitBlocks.push_back(Successor); in getUniqueExitBlocksHelper() 143 SmallVectorImpl<BlockT *> &ExitBlocks) const { in getUniqueExitBlocks() argument 144 getUniqueExitBlocksHelper(this, ExitBlocks, in getUniqueExitBlocks() 150 SmallVectorImpl<BlockT *> &ExitBlocks) const { in getUniqueNonLatchExitBlocks() argument 153 getUniqueExitBlocksHelper(this, ExitBlocks, in getUniqueNonLatchExitBlocks()
|
H A D | LoopInfo.h | 298 void getExitBlocks(SmallVectorImpl<BlockT *> &ExitBlocks) const; 310 void getUniqueExitBlocks(SmallVectorImpl<BlockT *> &ExitBlocks) const; 316 void getUniqueNonLatchExitBlocks(SmallVectorImpl<BlockT *> &ExitBlocks) const;
|
/openbsd/gnu/llvm/llvm/lib/Transforms/Scalar/ |
H A D | SimpleLoopUnswitch.cpp | 1155 for (auto *ExitBB : ExitBlocks) { in buildClonedLoopBlocks() 1378 for (auto *ExitBB : ExitBlocks) in buildClonedLoops() 1671 llvm::erase_if(ExitBlocks, in deleteDeadBlocksFromLoop() 1855 ExitsInLoops.reserve(ExitBlocks.size()); in rebuildLoopAfterUnswitch() 1856 for (auto *ExitBB : ExitBlocks) in rebuildLoopAfterUnswitch() 2160 SmallVector<BasicBlock *, 4> ExitBlocks; in unswitchNontrivialInvariants() local 2161 L.getUniqueExitBlocks(ExitBlocks); in unswitchNontrivialInvariants() 2162 for (auto *ExitBB : ExitBlocks) { in unswitchNontrivialInvariants() 2872 SmallVector<BasicBlock *, 4> ExitBlocks; in isSafeForNoNTrivialUnswitching() local 2873 L.getUniqueExitBlocks(ExitBlocks); in isSafeForNoNTrivialUnswitching() [all …]
|
H A D | LICM.cpp | 470 SmallVector<BasicBlock *, 8> ExitBlocks; in runOnLoop() local 471 L->getUniqueExitBlocks(ExitBlocks); in runOnLoop() 481 InsertPts.reserve(ExitBlocks.size()); in runOnLoop() 482 MSSAInsertPts.reserve(ExitBlocks.size()); in runOnLoop() 483 for (BasicBlock *ExitBlock : ExitBlocks) { in runOnLoop() 1536 SmallVector<BasicBlock *, 32> ExitBlocks; in splitPredecessorsOfLoopExit() local 1537 CurLoop->getUniqueExitBlocks(ExitBlocks); in splitPredecessorsOfLoopExit() 1670 SmallVector<BasicBlock *, 32> ExitBlocks; in sink() local 1671 CurLoop->getUniqueExitBlocks(ExitBlocks); in sink() 1954 SmallVectorImpl<BasicBlock *> &ExitBlocks, in promoteLoopAccessesToScalars() argument [all …]
|
H A D | LoopSimplifyCFG.cpp | 261 SmallVector<BasicBlock *, 8> ExitBlocks; in analyze() local 262 L.getExitBlocks(ExitBlocks); in analyze() 264 for (auto *ExitBlock : ExitBlocks) in analyze()
|
H A D | LoopIdiomRecognize.cpp | 203 SmallVectorImpl<BasicBlock *> &ExitBlocks); 399 SmallVector<BasicBlock *, 8> ExitBlocks; in runOnCountableLoop() local 400 CurLoop->getUniqueExitBlocks(ExitBlocks); in runOnCountableLoop() 422 MadeChange |= runOnLoopBlock(BB, BECount, ExitBlocks); in runOnCountableLoop() 625 SmallVectorImpl<BasicBlock *> &ExitBlocks) { in runOnLoopBlock() argument 629 for (BasicBlock *ExitBlock : ExitBlocks) in runOnLoopBlock()
|
H A D | IndVarSimplify.cpp | 444 SmallVector<BasicBlock *, 8> ExitBlocks; in rewriteFirstIterationLoopExitValues() local 445 L->getUniqueExitBlocks(ExitBlocks); in rewriteFirstIterationLoopExitValues() 448 for (auto *ExitBB : ExitBlocks) { in rewriteFirstIterationLoopExitValues()
|
/openbsd/gnu/llvm/llvm/lib/Transforms/Instrumentation/ |
H A D | InstrProfiling.cpp | 161 BasicBlock *PH, ArrayRef<BasicBlock *> ExitBlocks, in PGOCounterPromoterHelper() argument 165 : LoadAndStorePromoter({L, S}, SSA), Store(S), ExitBlocks(ExitBlocks), in PGOCounterPromoterHelper() 173 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) { in doExtraRewritesBeforeFinalDeletion() 174 BasicBlock *ExitBlock = ExitBlocks[i]; in doExtraRewritesBeforeFinalDeletion() 218 ArrayRef<BasicBlock *> ExitBlocks; member in __anon9d6b1f180111::PGOCounterPromoterHelper 245 ExitBlocks.push_back(ExitBlock); in PGOCounterPromoter() 253 if (ExitBlocks.size() == 0) in run() 262 for (auto *BB : ExitBlocks) in run() 292 L.getLoopPreheader(), ExitBlocks, in run() 383 SmallVector<BasicBlock *, 8> ExitBlocks; member in __anon9d6b1f180111::PGOCounterPromoter
|
/openbsd/gnu/llvm/llvm/lib/Transforms/IPO/ |
H A D | LoopExtractor.cpp | 200 SmallVector<BasicBlock *, 8> ExitBlocks; in runOnFunction() local 201 TLL->getExitBlocks(ExitBlocks); in runOnFunction() 202 for (auto *ExitBlock : ExitBlocks) in runOnFunction()
|
/openbsd/gnu/llvm/llvm/lib/CodeGen/ |
H A D | ShrinkWrap.cpp | 429 SmallVector<MachineBasicBlock*, 4> ExitBlocks; in updateSaveRestorePoints() local 430 MLI->getLoopFor(Restore)->getExitingBlocks(ExitBlocks); in updateSaveRestorePoints() 434 for (MachineBasicBlock *LoopExitBB: ExitBlocks) { in updateSaveRestorePoints()
|
H A D | MachineLICM.cpp | 137 SmallVector<MachineBasicBlock *, 8> ExitBlocks; member in __anon5127df9b0111::MachineLICMBase 140 return is_contained(ExitBlocks, MBB); in isExitBlock() 373 ExitBlocks.clear(); in runOnMachineFunction() 382 CurLoop->getExitBlocks(ExitBlocks); in runOnMachineFunction()
|
/openbsd/gnu/llvm/llvm/lib/Analysis/ |
H A D | MemorySSAUpdater.cpp | 677 ArrayRef<BasicBlock *> ExitBlocks, in updateForClonedLoop() argument 747 for (auto *BB : llvm::concat<BasicBlock *const>(LoopBlocks, ExitBlocks)) in updateForClonedLoop() 750 for (auto *BB : llvm::concat<BasicBlock *const>(LoopBlocks, ExitBlocks)) in updateForClonedLoop() 774 ArrayRef<BasicBlock *> ExitBlocks, Iter ValuesBegin, Iter ValuesEnd, in privateUpdateExitBlocksForClonedLoop() argument 778 for (auto *Exit : ExitBlocks) in privateUpdateExitBlocksForClonedLoop() 788 ArrayRef<BasicBlock *> ExitBlocks, const ValueToValueMapTy &VMap, in updateExitBlocksForClonedLoop() argument 791 privateUpdateExitBlocksForClonedLoop(ExitBlocks, std::begin(Arr), in updateExitBlocksForClonedLoop() 796 ArrayRef<BasicBlock *> ExitBlocks, in updateExitBlocksForClonedLoop() argument 806 privateUpdateExitBlocksForClonedLoop(ExitBlocks, MapBegin, MapEnd, DT); in updateExitBlocksForClonedLoop()
|
H A D | LoopInfo.cpp | 1005 SmallVector<BasicBlock *, 8> ExitBlocks; in printLoop() local 1006 L.getExitBlocks(ExitBlocks); in printLoop() 1007 if (!ExitBlocks.empty()) { in printLoop() 1009 for (auto *Block : ExitBlocks) in printLoop()
|
/openbsd/gnu/llvm/llvm/lib/Target/ARM/ |
H A D | ARMLowOverheadLoops.cpp | 155 SmallVector<MachineBasicBlock*, 2> ExitBlocks; in ProcessLoop() local 156 ML.getExitBlocks(ExitBlocks); in ProcessLoop() 157 append_range(Order, ExitBlocks); in ProcessLoop() 1034 SmallVector<MachineBasicBlock *, 2> ExitBlocks; in ValidateLiveOuts() local 1035 ML.getExitBlocks(ExitBlocks); in ValidateLiveOuts() 1037 assert(ExitBlocks.size() == 1 && "Expected a single exit block"); in ValidateLiveOuts() 1038 MachineBasicBlock *ExitBB = ExitBlocks.front(); in ValidateLiveOuts()
|
H A D | ARMTargetTransformInfo.cpp | 2369 SmallVector<BasicBlock *, 4> ExitBlocks; in getUnrollingPreferences() local 2370 L->getExitBlocks(ExitBlocks); in getUnrollingPreferences() 2371 for (auto *Exit : ExitBlocks) { in getUnrollingPreferences()
|
/openbsd/gnu/llvm/llvm/lib/Target/Hexagon/ |
H A D | HexagonLoopIdiomRecognition.cpp | 138 SmallVectorImpl<BasicBlock *> &ExitBlocks); 2148 SmallVector<BasicBlock*, 8> ExitBlocks; in processCopyingStore() local 2149 CurLoop->getUniqueExitBlocks(ExitBlocks); in processCopyingStore() 2150 if (ExitBlocks.size() != 1) in processCopyingStore() 2152 ExitB = ExitBlocks[0]; in processCopyingStore() 2367 const SCEV *BECount, SmallVectorImpl<BasicBlock*> &ExitBlocks) { in runOnLoopBlock() argument 2374 if (!all_of(ExitBlocks, DominatedByBB)) in runOnLoopBlock() 2402 SmallVector<BasicBlock *, 8> ExitBlocks; in runOnCountableLoop() local 2403 L->getUniqueExitBlocks(ExitBlocks); in runOnCountableLoop() 2412 Changed |= runOnLoopBlock(L, BB, BECount, ExitBlocks); in runOnCountableLoop()
|