Home
last modified time | relevance | path

Searched refs:ExitingBlocks (Results 1 – 25 of 43) sorted by relevance

12

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLoopDeletion.cpp44 SmallVectorImpl<BasicBlock *> &ExitingBlocks, in isLoopDead() argument
55 Value *incoming = P.getIncomingValueForBlock(ExitingBlocks[0]); in isLoopDead()
62 all_of(makeArrayRef(ExitingBlocks).slice(1), [&](BasicBlock *BB) { in isLoopDead()
174 SmallVector<BasicBlock *, 4> ExitingBlocks; in deleteLoopIfDead() local
175 L->getExitingBlocks(ExitingBlocks); in deleteLoopIfDead()
187 if (!isLoopDead(L, SE, ExitingBlocks, ExitBlock, Changed, Preheader)) { in deleteLoopIfDead()
DIndVarSimplify.cpp830 SmallVector<BasicBlock *, 4> ExitingBlocks; in canLoopBeDeleted() local
831 L->getExitingBlocks(ExitingBlocks); in canLoopBeDeleted()
834 if (ExitBlocks.size() != 1 || ExitingBlocks.size() != 1) in canLoopBeDeleted()
840 Value *Incoming = P->getIncomingValueForBlock(ExitingBlocks[0]); in canLoopBeDeleted()
2659 SmallVector<BasicBlock*, 16> ExitingBlocks; in getMaxBackedgeTakenCount() local
2660 L->getExitingBlocks(ExitingBlocks); in getMaxBackedgeTakenCount()
2666 for (BasicBlock *ExitingBB : ExitingBlocks) { in getMaxBackedgeTakenCount()
2684 SmallVector<BasicBlock*, 16> ExitingBlocks; in optimizeLoopExits() local
2685 L->getExitingBlocks(ExitingBlocks); in optimizeLoopExits()
2688 auto NewEnd = llvm::remove_if(ExitingBlocks, in optimizeLoopExits()
[all …]
DLoopPredication.cpp1005 SmallVector<BasicBlock *, 16> ExitingBlocks; in getMinAnalyzeableBackedgeTakenCount() local
1006 L->getExitingBlocks(ExitingBlocks); in getMinAnalyzeableBackedgeTakenCount()
1009 for (BasicBlock *ExitingBB : ExitingBlocks) { in getMinAnalyzeableBackedgeTakenCount()
1059 SmallVector<BasicBlock *, 16> ExitingBlocks; in predicateLoopExits() local
1060 L->getExitingBlocks(ExitingBlocks); in predicateLoopExits()
1062 if (ExitingBlocks.empty()) in predicateLoopExits()
1086 for (auto *ExitingBB : ExitingBlocks) { in predicateLoopExits()
1129 for (BasicBlock *ExitingBB : ExitingBlocks) { in predicateLoopExits()
/external/llvm-project/llvm/lib/Transforms/Scalar/
DLoopDeletion.cpp46 SmallVectorImpl<BasicBlock *> &ExitingBlocks, in isLoopDead() argument
58 Value *incoming = P.getIncomingValueForBlock(ExitingBlocks[0]); in isLoopDead()
65 all_of(makeArrayRef(ExitingBlocks).slice(1), [&](BasicBlock *BB) { in isLoopDead()
191 SmallVector<BasicBlock *, 4> ExitingBlocks; in deleteLoopIfDead() local
192 L->getExitingBlocks(ExitingBlocks); in deleteLoopIfDead()
204 if (!isLoopDead(L, SE, ExitingBlocks, ExitBlock, Changed, Preheader)) { in deleteLoopIfDead()
DIndVarSimplify.cpp1397 SmallVector<BasicBlock*, 16> ExitingBlocks; in optimizeLoopExits() local
1398 L->getExitingBlocks(ExitingBlocks); in optimizeLoopExits()
1402 auto NewEnd = llvm::remove_if(ExitingBlocks, [&](BasicBlock *ExitingBB) { in optimizeLoopExits()
1424 ExitingBlocks.erase(NewEnd, ExitingBlocks.end()); in optimizeLoopExits()
1426 if (ExitingBlocks.empty()) in optimizeLoopExits()
1437 llvm::sort(ExitingBlocks, [&](BasicBlock *A, BasicBlock *B) { in optimizeLoopExits()
1450 for (unsigned i = 1; i < ExitingBlocks.size(); i++) { in optimizeLoopExits()
1451 assert(DT->dominates(ExitingBlocks[i-1], ExitingBlocks[i])); in optimizeLoopExits()
1458 for (BasicBlock *ExitingBB : ExitingBlocks) { in optimizeLoopExits()
1553 SmallVector<BasicBlock*, 16> ExitingBlocks; in predicateLoopExits() local
[all …]
DLoopPredication.cpp1007 SmallVector<BasicBlock *, 16> ExitingBlocks; in getMinAnalyzeableBackedgeTakenCount() local
1008 L->getExitingBlocks(ExitingBlocks); in getMinAnalyzeableBackedgeTakenCount()
1011 for (BasicBlock *ExitingBB : ExitingBlocks) { in getMinAnalyzeableBackedgeTakenCount()
1050 SmallVector<BasicBlock *, 16> ExitingBlocks; in predicateLoopExits() local
1051 L->getExitingBlocks(ExitingBlocks); in predicateLoopExits()
1053 if (ExitingBlocks.empty()) in predicateLoopExits()
1077 for (auto *ExitingBB : ExitingBlocks) { in predicateLoopExits()
1120 for (BasicBlock *ExitingBB : ExitingBlocks) { in predicateLoopExits()
/external/llvm-project/llvm/lib/Transforms/Utils/
DUnifyLoopExits.cpp144 SetVector<BasicBlock *> ExitingBlocks; in unifyLoopExits() local
151 ExitingBlocks.insert(BB); in unifyLoopExits()
170 for (auto EB : ExitingBlocks) { in unifyLoopExits()
182 auto LoopExitBlock = CreateControlFlowHub(&DTU, GuardBlocks, ExitingBlocks, in unifyLoopExits()
185 restoreSSA(DT, L, ExitingBlocks, LoopExitBlock); in unifyLoopExits()
DLoopUnroll.cpp544 std::vector<BasicBlock *> ExitingBlocks; in UnrollLoop() local
550 ExitingBlocks.push_back(ExitingBI->getParent()); in UnrollLoop()
646 if (*BB == ExitingBlocks[0]) in UnrollLoop()
647 ExitingBlocks.push_back(New); in UnrollLoop()
771 for (unsigned i = 0, e = ExitingBlocks.size(); i != e; ++i) { in UnrollLoop()
794 setDest(ExitingBlocks[i], ExitingSucc[i], ExitingSucc[i], NeedConditional, in UnrollLoop()
820 if (ExitingBI && BB == ExitingBlocks[0]) { in UnrollLoop()
830 NewIDom = ExitingBlocks.back(); in UnrollLoop()
831 for (unsigned i = 0, e = ExitingBlocks.size(); i != e; ++i) { in UnrollLoop()
832 Instruction *Term = ExitingBlocks[i]->getTerminator(); in UnrollLoop()
[all …]
DLoopSimplify.cpp537 SmallVector<BasicBlock*, 8> ExitingBlocks; in simplifyOneLoop() local
538 L->getExitingBlocks(ExitingBlocks); in simplifyOneLoop()
539 for (BasicBlock *ExitingBlock : ExitingBlocks) in simplifyOneLoop()
635 for (auto *ExitingBB : ExitingBlocks) in simplifyOneLoop()
649 for (unsigned i = 0, e = ExitingBlocks.size(); i != e; ++i) { in simplifyOneLoop()
650 BasicBlock *ExitingBlock = ExitingBlocks[i]; in simplifyOneLoop()
923 SmallVector<BasicBlock*, 8> ExitingBlocks;
924 L->getExitingBlocks(ExitingBlocks);
925 for (unsigned i = 0, e = ExitingBlocks.size(); i != e; ++i) {
926 if (isa<IndirectBrInst>((ExitingBlocks[i])->getTerminator())) {
DLoopUnrollRuntime.cpp492 SmallVector<BasicBlock*, 4> ExitingBlocks; in canProfitablyUnrollMultiExitLoop() local
493 L->getExitingBlocks(ExitingBlocks); in canProfitablyUnrollMultiExitLoop()
494 if (ExitingBlocks.size() > 2) in canProfitablyUnrollMultiExitLoop()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DLoopSimplify.cpp518 SmallVector<BasicBlock*, 8> ExitingBlocks; in simplifyOneLoop() local
519 L->getExitingBlocks(ExitingBlocks); in simplifyOneLoop()
520 for (BasicBlock *ExitingBlock : ExitingBlocks) in simplifyOneLoop()
615 for (auto *ExitingBB : ExitingBlocks) in simplifyOneLoop()
629 for (unsigned i = 0, e = ExitingBlocks.size(); i != e; ++i) { in simplifyOneLoop()
630 BasicBlock *ExitingBlock = ExitingBlocks[i]; in simplifyOneLoop()
905 SmallVector<BasicBlock*, 8> ExitingBlocks;
906 L->getExitingBlocks(ExitingBlocks);
907 for (unsigned i = 0, e = ExitingBlocks.size(); i != e; ++i) {
908 if (isa<IndirectBrInst>((ExitingBlocks[i])->getTerminator())) {
DLoopUnrollRuntime.cpp491 SmallVector<BasicBlock*, 4> ExitingBlocks; in canProfitablyUnrollMultiExitLoop() local
492 L->getExitingBlocks(ExitingBlocks); in canProfitablyUnrollMultiExitLoop()
493 if (ExitingBlocks.size() > 2) in canProfitablyUnrollMultiExitLoop()
/external/llvm/lib/Transforms/Utils/
DLoopSimplify.cpp503 SmallVector<BasicBlock*, 8> ExitingBlocks; in simplifyOneLoop() local
504 L->getExitingBlocks(ExitingBlocks); in simplifyOneLoop()
505 for (BasicBlock *ExitingBlock : ExitingBlocks) in simplifyOneLoop()
621 for (unsigned i = 0, e = ExitingBlocks.size(); i != e; ++i) { in simplifyOneLoop()
622 BasicBlock *ExitingBlock = ExitingBlocks[i]; in simplifyOneLoop()
862 SmallVector<BasicBlock*, 8> ExitingBlocks;
863 L->getExitingBlocks(ExitingBlocks);
864 for (unsigned i = 0, e = ExitingBlocks.size(); i != e; ++i) {
865 if (isa<IndirectBrInst>((ExitingBlocks[i])->getTerminator())) {
/external/llvm/include/llvm/Analysis/
DLoopInfoImpl.h35 getExitingBlocks(SmallVectorImpl<BlockT *> &ExitingBlocks) const { in getExitingBlocks() argument
43 ExitingBlocks.push_back(*BI); in getExitingBlocks()
52 SmallVector<BlockT*, 8> ExitingBlocks; in getExitingBlock() local
53 getExitingBlocks(ExitingBlocks); in getExitingBlock()
54 if (ExitingBlocks.size() == 1) in getExitingBlock()
55 return ExitingBlocks[0]; in getExitingBlock()
DRegionInfoImpl.h129 SmallVector<BlockT *, 8> ExitingBlocks; in contains() local
130 L->getExitingBlocks(ExitingBlocks); in contains()
132 for (BlockT *BB : ExitingBlocks) { in contains()
/external/llvm-project/llvm/include/llvm/Analysis/
DLoopInfoImpl.h34 SmallVectorImpl<BlockT *> &ExitingBlocks) const { in getExitingBlocks() argument
40 ExitingBlocks.push_back(BB); in getExitingBlocks()
50 SmallVector<BlockT *, 8> ExitingBlocks; in getExitingBlock() local
51 getExitingBlocks(ExitingBlocks); in getExitingBlock()
52 if (ExitingBlocks.size() == 1) in getExitingBlock()
53 return ExitingBlocks[0]; in getExitingBlock()
DRegionInfoImpl.h131 SmallVector<BlockT *, 8> ExitingBlocks; in contains() local
132 L->getExitingBlocks(ExitingBlocks); in contains()
134 for (BlockT *BB : ExitingBlocks) { in contains()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DLoopInfoImpl.h35 SmallVectorImpl<BlockT *> &ExitingBlocks) const { in getExitingBlocks() argument
41 ExitingBlocks.push_back(BB); in getExitingBlocks()
51 SmallVector<BlockT *, 8> ExitingBlocks; in getExitingBlock() local
52 getExitingBlocks(ExitingBlocks); in getExitingBlock()
53 if (ExitingBlocks.size() == 1) in getExitingBlock()
54 return ExitingBlocks[0]; in getExitingBlock()
DRegionInfoImpl.h131 SmallVector<BlockT *, 8> ExitingBlocks; in contains() local
132 L->getExitingBlocks(ExitingBlocks); in contains()
134 for (BlockT *BB : ExitingBlocks) { in contains()
/external/llvm-project/llvm/lib/Transforms/Instrumentation/
DInstrProfiling.cpp321 SmallVector<BasicBlock *, 8> ExitingBlocks; in allowSpeculativeCounterPromotion() local
322 L.getExitingBlocks(ExitingBlocks); in allowSpeculativeCounterPromotion()
324 if (ExitingBlocks.size() == 1) in allowSpeculativeCounterPromotion()
326 if (ExitingBlocks.size() > SpeculativeCounterPromotionMaxExiting) in allowSpeculativeCounterPromotion()
358 SmallVector<BasicBlock *, 8> ExitingBlocks; in getMaxNumOfPromotionsInLoop() local
359 LP->getExitingBlocks(ExitingBlocks); in getMaxNumOfPromotionsInLoop()
366 if (ExitingBlocks.size() == 1) in getMaxNumOfPromotionsInLoop()
369 if (ExitingBlocks.size() > SpeculativeCounterPromotionMaxExiting) in getMaxNumOfPromotionsInLoop()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DInstrProfiling.cpp306 SmallVector<BasicBlock *, 8> ExitingBlocks; in allowSpeculativeCounterPromotion() local
307 L.getExitingBlocks(ExitingBlocks); in allowSpeculativeCounterPromotion()
309 if (ExitingBlocks.size() == 1) in allowSpeculativeCounterPromotion()
311 if (ExitingBlocks.size() > SpeculativeCounterPromotionMaxExiting) in allowSpeculativeCounterPromotion()
333 SmallVector<BasicBlock *, 8> ExitingBlocks; in getMaxNumOfPromotionsInLoop() local
334 LP->getExitingBlocks(ExitingBlocks); in getMaxNumOfPromotionsInLoop()
341 if (ExitingBlocks.size() == 1) in getMaxNumOfPromotionsInLoop()
344 if (ExitingBlocks.size() > SpeculativeCounterPromotionMaxExiting) in getMaxNumOfPromotionsInLoop()
/external/llvm/lib/Target/PowerPC/
DPPCCTRLoops.cpp499 SmallVector<BasicBlock*, 4> ExitingBlocks; in convertToCTRLoop() local
500 L->getExitingBlocks(ExitingBlocks); in convertToCTRLoop()
505 for (SmallVectorImpl<BasicBlock *>::iterator I = ExitingBlocks.begin(), in convertToCTRLoop()
506 IE = ExitingBlocks.end(); I != IE; ++I) { in convertToCTRLoop()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCTargetTransformInfo.cpp506 SmallVector<BasicBlock*, 4> ExitingBlocks; in isHardwareLoopProfitable() local
507 L->getExitingBlocks(ExitingBlocks); in isHardwareLoopProfitable()
511 for (auto &BB : ExitingBlocks) { in isHardwareLoopProfitable()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMTargetTransformInfo.cpp1217 SmallVector<BasicBlock*, 4> ExitingBlocks; in getUnrollingPreferences() local
1218 L->getExitingBlocks(ExitingBlocks); in getUnrollingPreferences()
1221 << "Exit blocks: " << ExitingBlocks.size() << "\n"); in getUnrollingPreferences()
1225 if (ExitingBlocks.size() > 2) in getUnrollingPreferences()
/external/llvm-project/llvm/lib/Target/PowerPC/
DPPCTargetTransformInfo.cpp715 SmallVector<BasicBlock*, 4> ExitingBlocks; in isHardwareLoopProfitable() local
716 L->getExitingBlocks(ExitingBlocks); in isHardwareLoopProfitable()
720 for (auto &BB : ExitingBlocks) { in isHardwareLoopProfitable()

12