/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | SimpleLoopUnswitch.cpp | 162 BasicBlock &ExitBB) { in areLoopExitPHIsLoopInvariant() argument 163 for (Instruction &I : ExitBB) { in areLoopExitPHIsLoopInvariant() 221 static void rewritePHINodesForExitAndUnswitchedBlocks(BasicBlock &ExitBB, in rewritePHINodesForExitAndUnswitchedBlocks() argument 226 assert(&ExitBB != &UnswitchedBB && in rewritePHINodesForExitAndUnswitchedBlocks() 229 for (PHINode &PN : ExitBB.phis()) { in rewritePHINodesForExitAndUnswitchedBlocks() 257 NewPN->addIncoming(&PN, &ExitBB); in rewritePHINodesForExitAndUnswitchedBlocks() 277 for (auto *ExitBB : Exits) in hoistLoopToNewParent() local 278 if (Loop *ExitL = LI.getLoopFor(ExitBB)) in hoistLoopToNewParent() 337 static Loop *getTopMostExitingLoop(BasicBlock *ExitBB, LoopInfo &LI) { in getTopMostExitingLoop() argument 338 Loop *TopMost = LI.getLoopFor(ExitBB); in getTopMostExitingLoop() [all …]
|
D | LoopUnswitch.cpp | 835 BasicBlock *&ExitBB, in isTrivialLoopExitBlockHelper() argument 845 if (ExitBB) return false; in isTrivialLoopExitBlockHelper() 846 ExitBB = BB; in isTrivialLoopExitBlockHelper() 853 if (!isTrivialLoopExitBlockHelper(L, *SI, ExitBB, Visited)) in isTrivialLoopExitBlockHelper() 872 BasicBlock *ExitBB = nullptr; in isTrivialLoopExitBlock() local 873 if (isTrivialLoopExitBlockHelper(L, BB, ExitBB, Visited)) in isTrivialLoopExitBlock() 874 return ExitBB; in isTrivialLoopExitBlock()
|
D | LoopUnrollPass.cpp | 619 BasicBlock *ExitingBB, *ExitBB; in analyzeLoopUnrollCost() local 620 std::tie(ExitingBB, ExitBB) = ExitWorklist.pop_back_val(); in analyzeLoopUnrollCost() 622 for (Instruction &I : *ExitBB) { in analyzeLoopUnrollCost()
|
D | LICM.cpp | 1512 BasicBlock *ExitBB = PN->getParent(); in splitPredecessorsOfLoopExit() local 1513 assert(ExitBlockSet.count(ExitBB) && "Expect the PHI is in an exit block."); in splitPredecessorsOfLoopExit() 1548 SmallSetVector<BasicBlock *, 8> PredBBs(pred_begin(ExitBB), pred_end(ExitBB)); in splitPredecessorsOfLoopExit() 1555 ExitBB, PredBB, ".split.loop.exit", DT, LI, MSSAU, true); in splitPredecessorsOfLoopExit()
|
D | IndVarSimplify.cpp | 597 for (BasicBlock *ExitBB : ExitBlocks) { in rewriteLoopExitValues() 600 PHINode *PN = dyn_cast<PHINode>(ExitBB->begin()); in rewriteLoopExitValues() 606 BasicBlock::iterator BBI = ExitBB->begin(); in rewriteLoopExitValues() 758 for (auto *ExitBB : ExitBlocks) { in rewriteFirstIterationLoopExitValues() local 761 for (PHINode &PN : ExitBB->phis()) { in rewriteFirstIterationLoopExitValues()
|
D | LoopPredication.cpp | 1152 BasicBlock *ExitBB = BI->getSuccessor(ExitIfTrue ? 0 : 1); in predicateLoopExits() local 1153 if (!isVeryLikelyToDeopt(ExitBB)) in predicateLoopExits()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | LCSSA.cpp | 147 for (BasicBlock *ExitBB : ExitBlocks) { in formLCSSAForInstructions() 148 if (!DT.dominates(DomNode, DT.getNode(ExitBB))) in formLCSSAForInstructions() 152 if (SSAUpdate.HasValueForBlock(ExitBB)) in formLCSSAForInstructions() 155 PHINode *PN = PHINode::Create(I->getType(), PredCache.size(ExitBB), in formLCSSAForInstructions() 156 I->getName() + ".lcssa", &ExitBB->front()); in formLCSSAForInstructions() 160 for (BasicBlock *Pred : PredCache.get(ExitBB)) { in formLCSSAForInstructions() 175 SSAUpdate.AddAvailableValue(ExitBB, PN); in formLCSSAForInstructions() 185 if (auto *OtherLoop = LI.getLoopFor(ExitBB)) in formLCSSAForInstructions()
|
D | LowerMemIntrinsics.cpp | 318 BasicBlock *ExitBB = InsertBefore->getParent(); in createMemMoveLoop() local 319 ExitBB->setName("memmove_done"); in createMemMoveLoop() 341 ExitBB, LoopBB); in createMemMoveLoop() 344 BranchInst::Create(ExitBB, LoopBB, CompareN, ThenTerm); in createMemMoveLoop() 349 BasicBlock::Create(F->getContext(), "copy_forward_loop", F, ExitBB); in createMemMoveLoop() 360 ExitBB, FwdLoopBB); in createMemMoveLoop() 364 BranchInst::Create(ExitBB, FwdLoopBB, CompareN, ElseTerm); in createMemMoveLoop()
|
D | CodeExtractor.cpp | 700 for (BasicBlock *ExitBB : Exits) { in severSplitPHINodesOfExits() 703 for (PHINode &PN : ExitBB->phis()) { in severSplitPHINodesOfExits() 719 NewBB = BasicBlock::Create(ExitBB->getContext(), in severSplitPHINodesOfExits() 720 ExitBB->getName() + ".split", in severSplitPHINodesOfExits() 721 ExitBB->getParent(), ExitBB); in severSplitPHINodesOfExits() 722 SmallVector<BasicBlock *, 4> Preds(pred_begin(ExitBB), in severSplitPHINodesOfExits() 723 pred_end(ExitBB)); in severSplitPHINodesOfExits() 726 PredBB->getTerminator()->replaceUsesOfWith(ExitBB, NewBB); in severSplitPHINodesOfExits() 727 BranchInst::Create(ExitBB, NewBB); in severSplitPHINodesOfExits() 1552 for (BasicBlock *ExitBB : ExitBlocks) in extractCodeRegion() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/ |
D | CrossDSOCFI.cpp | 128 BasicBlock *ExitBB = BasicBlock::Create(Ctx, "exit", F); in buildCFICheck() local 136 IRBFail.CreateBr(ExitBB); in buildCFICheck() 138 IRBuilder<> IRBExit(ExitBB); in buildCFICheck() 152 BranchInst *BI = IRBTest.CreateCondBr(Test, ExitBB, TrapBB); in buildCFICheck()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | AtomicExpandPass.cpp | 1023 BasicBlock *ExitBB = in insertRMWLLSCLoop() local 1025 BasicBlock *LoopBB = BasicBlock::Create(Ctx, "atomicrmw.start", F, ExitBB); in insertRMWLLSCLoop() 1043 Builder.CreateCondBr(TryAgain, LoopBB, ExitBB); in insertRMWLLSCLoop() 1045 Builder.SetInsertPoint(ExitBB, ExitBB->begin()); in insertRMWLLSCLoop() 1168 BasicBlock *ExitBB = BB->splitBasicBlock(CI->getIterator(), "cmpxchg.end"); in expandAtomicCmpXchg() local 1169 auto FailureBB = BasicBlock::Create(Ctx, "cmpxchg.failure", F, ExitBB); in expandAtomicCmpXchg() 1234 Builder.CreateBr(ExitBB); in expandAtomicCmpXchg() 1246 Builder.CreateBr(ExitBB); in expandAtomicCmpXchg() 1252 Builder.SetInsertPoint(ExitBB, ExitBB->begin()); in expandAtomicCmpXchg() 1272 Builder.SetInsertPoint(ExitBB, ++ExitBB->begin()); in expandAtomicCmpXchg() [all …]
|
D | Analysis.cpp | 514 const BasicBlock *ExitBB = I->getParent(); in isInTailCallPosition() local 515 const Instruction *Term = ExitBB->getTerminator(); in isInTailCallPosition() 535 for (BasicBlock::const_iterator BBI = std::prev(ExitBB->end(), 2);; --BBI) { in isInTailCallPosition() 552 const Function *F = ExitBB->getParent(); in isInTailCallPosition()
|
D | MachineBlockPlacement.cpp | 468 const MachineBasicBlock *ExitBB, 1920 const MachineBasicBlock *ExitBB, in FallThroughGains() argument 1924 if (ExitBB) in FallThroughGains() 1926 MBPI->getEdgeProbability(NewTop, ExitBB); in FallThroughGains()
|
D | ModuloSchedule.cpp | 1249 MachineBasicBlock *PreheaderBB, *ExitBB; member in __anon499583ba0111::KernelRewriter 1283 ExitBB(L.getExitBlock()), MRI(BB->getParent()->getRegInfo()), in KernelRewriter()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/ |
D | GCOVProfiling.cpp | 1092 auto *ExitBB = BasicBlock::Create(*Ctx, "exit", WriteoutF); in insertCounterWriteout() local 1184 Builder.CreateCondBr(FileLoopCond, FileLoopHeader, ExitBB); in insertCounterWriteout() 1187 Builder.SetInsertPoint(ExitBB); in insertCounterWriteout()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/ObjCARC/ |
D | ObjCARCOpts.cpp | 1627 for (BasicBlock &ExitBB : F) { in ComputePostOrders() 1628 BBState &MyStates = BBStates[&ExitBB]; in ComputePostOrders() 1634 PredStack.push_back(std::make_pair(&ExitBB, MyStates.pred_begin())); in ComputePostOrders() 1635 Visited.insert(&ExitBB); in ComputePostOrders()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/ |
D | ARMConstantIslandPass.cpp | 1938 MachineBasicBlock *ExitBB = &MBB->back() == Br.MI ? in optimizeThumb2Branches() local 1943 if (FindCmpForCBZ(Br, Cmp, ExitBB) && TryConvertToLE(Br, Cmp)) { in optimizeThumb2Branches() 1944 DestBB = ExitBB; in optimizeThumb2Branches()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | ScalarEvolution.cpp | 7076 BasicBlock *ExitBB = EEI.first; in BackedgeTakenInfo() local 7079 return ExitNotTakenInfo(ExitBB, EL.ExactNotTaken, EL.MaxNotTaken, in BackedgeTakenInfo() 7086 return ExitNotTakenInfo(ExitBB, EL.ExactNotTaken, EL.MaxNotTaken, in BackedgeTakenInfo() 7118 BasicBlock *ExitBB = ExitingBlocks[i]; in computeBackedgeTakenCount() local 7123 if (auto *BI = dyn_cast<BranchInst>(ExitBB->getTerminator())) in computeBackedgeTakenCount() 7130 ExitLimit EL = computeExitLimit(L, ExitBB, AllowPredicates); in computeBackedgeTakenCount() 7142 ExitCounts.emplace_back(ExitBB, EL); in computeBackedgeTakenCount() 7155 DT.dominates(ExitBB, Latch)) { in computeBackedgeTakenCount()
|