Home
last modified time | relevance | path

Searched refs:ExitBlock (Results 1 – 25 of 48) sorted by relevance

12

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLoopDeletion.cpp45 BasicBlock *ExitBlock, bool &Changed, in isLoopDead() argument
54 for (PHINode &P : ExitBlock->phis()) { in isLoopDead()
158 BasicBlock *ExitBlock = L->getUniqueExitBlock(); in deleteLoopIfDead() local
160 if (ExitBlock && isLoopNeverExecuted(L)) { in deleteLoopIfDead()
163 for (PHINode &P : ExitBlock->phis()) { in deleteLoopIfDead()
181 if (!ExitBlock) { in deleteLoopIfDead()
187 if (!isLoopDead(L, SE, ExitingBlocks, ExitBlock, Changed, Preheader)) { in deleteLoopIfDead()
DLoopFuse.cpp143 BasicBlock *ExitBlock; member
169 ExitingBlock(L->getExitingBlock()), ExitBlock(L->getExitBlock()), in FusionCandidate()
214 return Preheader && Header && ExitingBlock && ExitBlock && Latch && L && in isValid()
226 assert(ExitBlock == L->getExitBlock() && "Exit block is out of sync"); in verify()
272 << "\tExitBB: " << (ExitBlock ? ExitBlock->getName() : "nullptr") in dump()
293 if (!ExitBlock) in isEligibleForFusion()
1042 return FC0.ExitBlock == FC1.getEntryBlock(); in isAdjacent()
1106 assert(FC.ExitBlock && "Expecting a valid exit block"); in isEmptyExitBlock()
1107 return FC.ExitBlock->size() == 1; in isEmptyExitBlock()
1175 assert(FC1.Preheader == FC0.ExitBlock); in performFusion()
[all …]
DLICM.cpp159 Instruction &I, BasicBlock &ExitBlock, PHINode &PN, const LoopInfo *LI,
423 for (BasicBlock *ExitBlock : ExitBlocks) { in runOnLoop()
424 InsertPts.push_back(&*ExitBlock->getFirstInsertionPt()); in runOnLoop()
1366 Instruction &I, BasicBlock &ExitBlock, PHINode &PN, const LoopInfo *LI, in CloneInstructionInExitBlock() argument
1386 const ColorVector &CV = BlockColors.find(&ExitBlock)->second; in CloneInstructionInExitBlock()
1399 ExitBlock.getInstList().insert(ExitBlock.getFirstInsertionPt(), New); in CloneInstructionInExitBlock()
1431 OInst->getName() + ".lcssa", &ExitBlock.front()); in CloneInstructionInExitBlock()
1472 BasicBlock *ExitBlock = TPN->getParent(); in sinkThroughTriviallyReplaceablePHI() local
1474 auto It = SunkCopies.find(ExitBlock); in sinkThroughTriviallyReplaceablePHI()
1478 New = SunkCopies[ExitBlock] = CloneInstructionInExitBlock( in sinkThroughTriviallyReplaceablePHI()
[all …]
DLoopUnswitch.cpp251 BasicBlock *ExitBlock, Instruction *TI);
1001 BasicBlock *ExitBlock, in UnswitchTrivialCondition() argument
1026 assert(!L->contains(ExitBlock) && "Exit block is in the loop?"); in UnswitchTrivialCondition()
1028 SplitBlock(ExitBlock, &ExitBlock->front(), DT, LI, MSSAU.get()); in UnswitchTrivialCondition()
1220 BasicBlock *ExitBlock = ExitBlocks[i]; in SplitExitEdges() local
1221 SmallVector<BasicBlock *, 4> Preds(pred_begin(ExitBlock), in SplitExitEdges()
1222 pred_end(ExitBlock)); in SplitExitEdges()
1226 SplitBlockPredecessors(ExitBlock, Preds, ".us-lcssa", DT, LI, MSSAU.get(), in SplitExitEdges()
DLoopSimplifyCFG.cpp267 for (auto *ExitBlock : ExitBlocks) in analyze() local
268 if (!LiveExitBlocks.count(ExitBlock) && in analyze()
269 UniqueDeadExits.insert(ExitBlock).second) in analyze()
270 DeadExitBlocks.push_back(ExitBlock); in analyze()
/external/llvm/lib/Transforms/Scalar/
DLICM.cpp100 CloneInstructionInExitBlock(Instruction &I, BasicBlock &ExitBlock, PHINode &PN,
585 CloneInstructionInExitBlock(Instruction &I, BasicBlock &ExitBlock, PHINode &PN, in CloneInstructionInExitBlock() argument
606 const ColorVector &CV = BlockColors.find(&ExitBlock)->second; in CloneInstructionInExitBlock()
619 ExitBlock.getInstList().insert(ExitBlock.getFirstInsertionPt(), New); in CloneInstructionInExitBlock()
637 OInst->getName() + ".lcssa", &ExitBlock.front()); in CloneInstructionInExitBlock()
695 BasicBlock *ExitBlock = PN->getParent(); in sink() local
696 assert(ExitBlockSet.count(ExitBlock) && in sink()
700 auto It = SunkCopies.find(ExitBlock); in sink()
704 New = SunkCopies[ExitBlock] = in sink()
705 CloneInstructionInExitBlock(I, *ExitBlock, *PN, LI, SafetyInfo); in sink()
[all …]
DLoopUnswitch.cpp244 BasicBlock *ExitBlock, TerminatorInst *TI);
818 BasicBlock *ExitBlock, in UnswitchTrivialCondition() argument
839 assert(!L->contains(ExitBlock) && "Exit block is in the loop?"); in UnswitchTrivialCondition()
840 BasicBlock *NewExit = SplitBlock(ExitBlock, &ExitBlock->front(), DT, LI); in UnswitchTrivialCondition()
1012 BasicBlock *ExitBlock = ExitBlocks[i]; in SplitExitEdges() local
1013 SmallVector<BasicBlock *, 4> Preds(pred_begin(ExitBlock), in SplitExitEdges()
1014 pred_end(ExitBlock)); in SplitExitEdges()
1018 SplitBlockPredecessors(ExitBlock, Preds, ".us-lcssa", DT, LI, in SplitExitEdges()
DLoopDistribute.cpp400 BasicBlock *ExitBlock = L->getExitBlock(); in cloneLoops() local
401 assert(ExitBlock && "No single exit block"); in cloneLoops()
422 Part->getVMap()[ExitBlock] = TopPH; in cloneLoops()
/external/llvm/test/Transforms/LoopSimplify/
D2003-12-10-ExitBlocksProblem.ll23 br i1 %tmp.4.i, label %ExitBlock.i, label %endif.1.i
31 br label %ExitBlock.i
32 ExitBlock.i: ; preds = %Out.i, %endif.0.i
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DPartialInlining.cpp186 BasicBlock *EntryBlock, BasicBlock *ExitBlock, in OutlineRegionInfo()
189 ExitBlock(ExitBlock), ReturnBlock(ReturnBlock) {} in OutlineRegionInfo()
192 BasicBlock *ExitBlock; member
422 BasicBlock *ExitBlock = nullptr; in computeOutliningColdRegionsInfo() local
426 if (ExitBlock) { in computeOutliningColdRegionsInfo()
436 ExitBlock = Block; in computeOutliningColdRegionsInfo()
440 return ExitBlock; in computeOutliningColdRegionsInfo()
506 BasicBlock *ExitBlock = nullptr; in computeOutliningColdRegionsInfo() local
508 if (!(ExitBlock = IsSingleExit(DominateVector))) in computeOutliningColdRegionsInfo()
535 BasicBlock *ReturnBlock = ExitBlock->getSingleSuccessor(); in computeOutliningColdRegionsInfo()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DMustExecute.cpp116 static bool CanProveNotTakenFirstIteration(const BasicBlock *ExitBlock, in CanProveNotTakenFirstIteration() argument
119 auto *CondExitBlock = ExitBlock->getSinglePredecessor(); in CanProveNotTakenFirstIteration()
130 return BI->getSuccessor(Cond->getZExtValue() ? 1 : 0) == ExitBlock; in CanProveNotTakenFirstIteration()
141 auto DL = ExitBlock->getModule()->getDataLayout(); in CanProveNotTakenFirstIteration()
150 if (ExitBlock == BI->getSuccessor(0)) in CanProveNotTakenFirstIteration()
152 assert(ExitBlock == BI->getSuccessor(1) && "implied by above"); in CanProveNotTakenFirstIteration()
DSyncDependenceAnalysis.cpp319 for (const auto *ExitBlock : ReachedLoopExits) { in computeJoinPoints() local
320 auto ItExitDef = DefMap.find(ExitBlock); in computeJoinPoints()
324 JoinBlocks->insert(ExitBlock); in computeJoinPoints()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/
DCodeExtractor.h185 BasicBlock *&ExitBlock) const;
207 Instruction *Addr, BasicBlock *ExitBlock) const;
/external/clang/lib/CodeGen/
DCGDeclCXX.cpp533 llvm::BasicBlock *ExitBlock = nullptr; in GenerateCXXGlobalInitFunc() local
541 ExitBlock = createBasicBlock("exit"); in GenerateCXXGlobalInitFunc()
542 Builder.CreateCondBr(Uninit, InitBlock, ExitBlock); in GenerateCXXGlobalInitFunc()
565 if (ExitBlock) { in GenerateCXXGlobalInitFunc()
566 Builder.CreateBr(ExitBlock); in GenerateCXXGlobalInitFunc()
567 EmitBlock(ExitBlock); in GenerateCXXGlobalInitFunc()
DCGStmt.cpp703 llvm::BasicBlock *ExitBlock = LoopExit.getBlock(); in EmitWhileStmt() local
705 ExitBlock = createBasicBlock("while.exit"); in EmitWhileStmt()
707 BoolCondVal, LoopBody, ExitBlock, in EmitWhileStmt()
710 if (ExitBlock != LoopExit.getBlock()) { in EmitWhileStmt()
711 EmitBlock(ExitBlock); in EmitWhileStmt()
846 llvm::BasicBlock *ExitBlock = LoopExit.getBlock(); in EmitForStmt() local
850 ExitBlock = createBasicBlock("for.cond.cleanup"); in EmitForStmt()
859 BoolCondVal, ForBody, ExitBlock, in EmitForStmt()
862 if (ExitBlock != LoopExit.getBlock()) { in EmitForStmt()
863 EmitBlock(ExitBlock); in EmitForStmt()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DLoopUtils.cpp525 auto *ExitBlock = L->getUniqueExitBlock(); in deleteDeadLoop() local
526 assert(ExitBlock && "Should have a unique exit block!"); in deleteDeadLoop()
558 Builder.CreateCondBr(Builder.getFalse(), L->getHeader(), ExitBlock); in deleteDeadLoop()
564 for (PHINode &P : ExitBlock->phis()) { in deleteDeadLoop()
587 Builder.CreateBr(ExitBlock); in deleteDeadLoop()
595 DTU.applyUpdates({{DominatorTree::Insert, Preheader, ExitBlock}, in deleteDeadLoop()
642 DIBuilder DIB(*ExitBlock->getModule()); in deleteDeadLoop()
643 Instruction *InsertDbgValueBefore = ExitBlock->getFirstNonPHI(); in deleteDeadLoop()
DCodeExtractor.cpp445 BasicBlock *ExitBlock) const { in getLifetimeMarkers()
480 if (Info.HoistLifeEnd && !ExitBlock) in getLifetimeMarkers()
488 BasicBlock *&ExitBlock) const { in findAllocas()
490 ExitBlock = getCommonExitBlock(Blocks); in findAllocas()
521 LifetimeMarkerInfo MarkerInfo = getLifetimeMarkers(CEAC, AI, ExitBlock); in findAllocas()
535 LifetimeMarkerInfo LMI = getLifetimeMarkers(CEAC, Bitcast, ExitBlock); in findAllocas()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DControlHeightReduction.cpp379 BasicBlock *ExitBlock,
1579 BasicBlock *EntryBlock, BasicBlock *ExitBlock, in insertTrivialPHIs() argument
1602 !(isa<PHINode>(UI) && UI->getParent() == ExitBlock)) { in insertTrivialPHIs()
1621 unsigned PredCount = std::distance(pred_begin(ExitBlock), in insertTrivialPHIs()
1622 pred_end(ExitBlock)); in insertTrivialPHIs()
1624 &ExitBlock->front()); in insertTrivialPHIs()
1625 for (BasicBlock *Pred : predecessors(ExitBlock)) { in insertTrivialPHIs()
1708 BasicBlock *ExitBlock = LastRegion->getExit(); in transformScopes() local
1711 if (ExitBlock) { in transformScopes()
1718 insertTrivialPHIs(Scope, EntryBlock, ExitBlock, TrivialPHIs); in transformScopes()
[all …]
DInstrProfiling.cpp197 BasicBlock *ExitBlock = ExitBlocks[i]; in doExtraRewritesBeforeFinalDeletion() local
202 Value *LiveInValue = SSA.GetValueInMiddleOfBlock(ExitBlock); in doExtraRewritesBeforeFinalDeletion()
218 auto *TargetLoop = LI.getLoopFor(ExitBlock); in doExtraRewritesBeforeFinalDeletion()
249 for (BasicBlock *ExitBlock : LoopExitBlocks) { in PGOCounterPromoter()
250 if (BlockSet.insert(ExitBlock).second) { in PGOCounterPromoter()
251 ExitBlocks.push_back(ExitBlock); in PGOCounterPromoter()
252 InsertPts.push_back(&*ExitBlock->getFirstInsertionPt()); in PGOCounterPromoter()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Remarks/
DBitstreamRemarkSerializer.cpp230 Bitstream.ExitBlock(); in setupBlockInfo()
265 Bitstream.ExitBlock(); in emitMetaBlock()
315 Bitstream.ExitBlock(); in emitRemarkBlock()
/external/llvm/lib/Transforms/Utils/
DLoopSimplify.cpp543 for (BasicBlock *ExitBlock : ExitBlockSet) { in simplifyOneLoop()
544 for (pred_iterator PI = pred_begin(ExitBlock), PE = pred_end(ExitBlock); in simplifyOneLoop()
549 if (rewriteLoopExitBlock(L, ExitBlock, DT, LI, PreserveLCSSA)) { in simplifyOneLoop()
/external/swiftshader/third_party/subzero/pnacl-llvm/include/llvm/Bitcode/NaCl/
DNaClBitcodeParser.h417 virtual void ExitBlock() {} in ExitBlock() function
590 ExitBlock(); in ParseThisBlockInternal()
/external/llvm/lib/Bitcode/Writer/
DBitcodeWriter.cpp727 Stream.ExitBlock(); in writeAttributeGroupTable()
746 Stream.ExitBlock(); in writeAttributeTable()
907 Stream.ExitBlock(); in writeTypeTable()
1854 Stream.ExitBlock(); in writeModuleMetadata()
1865 Stream.ExitBlock(); in writeFunctionMetadata()
1911 Stream.ExitBlock(); in writeFunctionMetadataAttachment()
1935 Stream.ExitBlock(); in writeModuleMetadataKinds()
1962 Stream.ExitBlock(); in writeOperandBundleTags()
2224 Stream.ExitBlock(); in writeConstants()
2802 Stream.ExitBlock(); in writeValueSymbolTable()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Bitcode/Writer/
DBitcodeWriter.cpp785 Stream.ExitBlock(); in writeAttributeGroupTable()
807 Stream.ExitBlock(); in writeAttributeTable()
967 Stream.ExitBlock(); in writeTypeTable()
2132 Stream.ExitBlock(); in writeModuleMetadata()
2143 Stream.ExitBlock(); in writeFunctionMetadata()
2189 Stream.ExitBlock(); in writeFunctionMetadataAttachment()
2213 Stream.ExitBlock(); in writeModuleMetadataKinds()
2240 Stream.ExitBlock(); in writeOperandBundleTags()
2258 Stream.ExitBlock(); in writeSyncScopeNames()
2533 Stream.ExitBlock(); in writeConstants()
[all …]
/external/swiftshader/third_party/subzero/pnacl-llvm/
DNaClBitcodeParser.cpp67 Parser->ExitBlock(); in EndBlockInfoBlock()

12