Home
last modified time | relevance | path

Searched refs:ExitingBlock (Results 1 – 8 of 8) sorted by relevance

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DLoopSimplify.cpp520 for (BasicBlock *ExitingBlock : ExitingBlocks) in simplifyOneLoop()
521 if (BranchInst *BI = dyn_cast<BranchInst>(ExitingBlock->getTerminator())) in simplifyOneLoop()
527 << ExitingBlock->getName() << "\n"); in simplifyOneLoop()
630 BasicBlock *ExitingBlock = ExitingBlocks[i]; in simplifyOneLoop() local
631 if (!ExitingBlock->getSinglePredecessor()) continue; in simplifyOneLoop()
632 BranchInst *BI = dyn_cast<BranchInst>(ExitingBlock->getTerminator()); in simplifyOneLoop()
635 if (!CI || CI->getParent() != ExitingBlock) continue; in simplifyOneLoop()
641 for (auto I = ExitingBlock->instructionsWithoutDebug().begin(); &*I != BI; ) { in simplifyOneLoop()
670 << ExitingBlock->getName() << "\n"); in simplifyOneLoop()
672 assert(pred_begin(ExitingBlock) == pred_end(ExitingBlock)); in simplifyOneLoop()
[all …]
DLoopUnroll.cpp408 BasicBlock *ExitingBlock = L->getLoopLatch(); in UnrollLoop() local
409 assert(ExitingBlock && "Loop without exiting block?"); in UnrollLoop()
410 assert(L->isLoopExiting(ExitingBlock) && "Latch is not exiting?"); in UnrollLoop()
412 ULO.TripCount = SE->getSmallConstantTripCount(L, ExitingBlock); in UnrollLoop()
413 ULO.TripMultiple = SE->getSmallConstantTripMultiple(L, ExitingBlock); in UnrollLoop()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLoopFuse.cpp141 BasicBlock *ExitingBlock; member
169 ExitingBlock(L->getExitingBlock()), ExitBlock(L->getExitBlock()), in FusionCandidate()
214 return Preheader && Header && ExitingBlock && ExitBlock && Latch && L && in isValid()
224 assert(ExitingBlock == L->getExitingBlock() && in verify()
271 << (ExitingBlock ? ExitingBlock->getName() : "nullptr") << "\n" in dump()
291 if (!ExitingBlock) in isEligibleForFusion()
1189 if (FC0.ExitingBlock != FC0.Latch) in performFusion()
1217 FC0.ExitingBlock->getTerminator()->replaceUsesOfWith(FC1.Preheader, in performFusion()
1220 DominatorTree::Delete, FC0.ExitingBlock, FC1.Preheader)); in performFusion()
1222 DominatorTree::Insert, FC0.ExitingBlock, FC1.Header)); in performFusion()
[all …]
DLoopUnrollPass.cpp1086 BasicBlock *ExitingBlock = L->getLoopLatch(); in tryToUnrollLoop() local
1087 if (!ExitingBlock || !L->isLoopExiting(ExitingBlock)) in tryToUnrollLoop()
1088 ExitingBlock = L->getExitingBlock(); in tryToUnrollLoop()
1089 if (ExitingBlock) { in tryToUnrollLoop()
1090 TripCount = SE.getSmallConstantTripCount(L, ExitingBlock); in tryToUnrollLoop()
1091 TripMultiple = SE.getSmallConstantTripMultiple(L, ExitingBlock); in tryToUnrollLoop()
DLoopStrengthReduce.cpp2386 for (BasicBlock *ExitingBlock : ExitingBlocks) { in OptimizeLoopTermCond()
2392 BranchInst *TermBr = dyn_cast<BranchInst>(ExitingBlock->getTerminator()); in OptimizeLoopTermCond()
2416 if (!DT.dominates(ExitingBlock, LatchBlock)) in OptimizeLoopTermCond()
2421 if (LatchBlock != ExitingBlock) in OptimizeLoopTermCond()
2426 !DT.properlyDominates(UI->getUser()->getParent(), ExitingBlock)) { in OptimizeLoopTermCond()
2484 ExitingBlock->getInstList().insert(TermBr->getIterator(), Cond); in OptimizeLoopTermCond()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonHardwareLoops.cpp410 MachineBasicBlock *ExitingBlock = L->findLoopControlBlock(); in findInductionRegister() local
411 if (!Header || !Preheader || !Latch || !ExitingBlock) in findInductionRegister()
458 bool NotAnalyzed = TII->analyzeBranch(*ExitingBlock, TB, FB, Cond, false); in findInductionRegister()
591 MachineBasicBlock *ExitingBlock = L->findLoopControlBlock(); in getLoopTripCount() local
592 if (!ExitingBlock) in getLoopTripCount()
619 bool NotAnalyzed = TII->analyzeBranch(*ExitingBlock, TB, FB, Cond, false); in getLoopTripCount()
628 if (ExitingBlock != Latch && (TB == Latch || FB == Latch)) { in getLoopTripCount()
1221 MachineBasicBlock *ExitingBlock = L->findLoopControlBlock(); in convertToHardwareLoop() local
1223 if (ExitingBlock != L->getLoopLatch()) { in convertToHardwareLoop()
1227 if (TII->analyzeBranch(*ExitingBlock, TB, FB, Cond, false)) in convertToHardwareLoop()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DScalarEvolution.h698 unsigned getSmallConstantTripCount(const Loop *L, BasicBlock *ExitingBlock);
720 BasicBlock *ExitingBlock);
740 const SCEV *getExitCount(const Loop *L, BasicBlock *ExitingBlock,
1248 PoisoningVH<BasicBlock> ExitingBlock;
1253 explicit ExitNotTakenInfo(PoisoningVH<BasicBlock> ExitingBlock,
1257 : ExitingBlock(ExitingBlock), ExactNotTaken(ExactNotTaken),
1336 const SCEV *getExact(BasicBlock *ExitingBlock, ScalarEvolution *SE) const;
1342 const SCEV *getMax(BasicBlock *ExitingBlock, ScalarEvolution *SE) const;
1512 ExitLimit computeExitLimit(const Loop *L, BasicBlock *ExitingBlock,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DScalarEvolution.cpp6576 BasicBlock *ExitingBlock) { in getSmallConstantTripCount() argument
6577 assert(ExitingBlock && "Must pass a non-null exiting block!"); in getSmallConstantTripCount()
6578 assert(L->isLoopExiting(ExitingBlock) && in getSmallConstantTripCount()
6581 dyn_cast<SCEVConstant>(getExitCount(L, ExitingBlock)); in getSmallConstantTripCount()
6613 BasicBlock *ExitingBlock) { in getSmallConstantTripMultiple() argument
6614 assert(ExitingBlock && "Must pass a non-null exiting block!"); in getSmallConstantTripMultiple()
6615 assert(L->isLoopExiting(ExitingBlock) && in getSmallConstantTripMultiple()
6617 const SCEV *ExitCount = getExitCount(L, ExitingBlock); in getSmallConstantTripMultiple()
6644 BasicBlock *ExitingBlock, in getExitCount() argument
6648 return getBackedgeTakenInfo(L).getExact(ExitingBlock, this); in getExitCount()
[all …]