Home
last modified time | relevance | path

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

12

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DMustExecute.cpp62 static bool CanProveNotTakenFirstIteration(BasicBlock *ExitBlock, in CanProveNotTakenFirstIteration() argument
65 auto *CondExitBlock = ExitBlock->getSinglePredecessor(); in CanProveNotTakenFirstIteration()
76 return BI->getSuccessor(Cond->getZExtValue() ? 1 : 0) == ExitBlock; in CanProveNotTakenFirstIteration()
87 auto DL = ExitBlock->getModule()->getDataLayout(); in CanProveNotTakenFirstIteration()
96 if (ExitBlock == BI->getSuccessor(0)) in CanProveNotTakenFirstIteration()
98 assert(ExitBlock == BI->getSuccessor(1) && "implied by above"); in CanProveNotTakenFirstIteration()
148 for (BasicBlock *ExitBlock : ExitBlocks) in isGuaranteedToExecute()
149 if (!DT->dominates(Inst.getParent(), ExitBlock)) in isGuaranteedToExecute()
151 !CanProveNotTakenFirstIteration(ExitBlock, DT, CurLoop)) in isGuaranteedToExecute()
/external/swiftshader/third_party/llvm-7.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()
DLICM.cpp112 CloneInstructionInExitBlock(Instruction &I, BasicBlock &ExitBlock, PHINode &PN,
303 for (BasicBlock *ExitBlock : ExitBlocks) in runOnLoop()
304 InsertPts.push_back(&*ExitBlock->getFirstInsertionPt()); in runOnLoop()
763 CloneInstructionInExitBlock(Instruction &I, BasicBlock &ExitBlock, PHINode &PN, in CloneInstructionInExitBlock() argument
784 const ColorVector &CV = BlockColors.find(&ExitBlock)->second; in CloneInstructionInExitBlock()
797 ExitBlock.getInstList().insert(ExitBlock.getFirstInsertionPt(), New); in CloneInstructionInExitBlock()
815 OInst->getName() + ".lcssa", &ExitBlock.front()); in CloneInstructionInExitBlock()
829 BasicBlock *ExitBlock = TPN->getParent(); in sinkThroughTriviallyReplaceablePHI() local
831 auto It = SunkCopies.find(ExitBlock); in sinkThroughTriviallyReplaceablePHI()
835 New = SunkCopies[ExitBlock] = in sinkThroughTriviallyReplaceablePHI()
[all …]
DLoopUnswitch.cpp242 BasicBlock *ExitBlock, TerminatorInst *TI);
972 BasicBlock *ExitBlock, in UnswitchTrivialCondition() argument
997 assert(!L->contains(ExitBlock) && "Exit block is in the loop?"); in UnswitchTrivialCondition()
998 BasicBlock *NewExit = SplitBlock(ExitBlock, &ExitBlock->front(), DT, LI); in UnswitchTrivialCondition()
1187 BasicBlock *ExitBlock = ExitBlocks[i]; in SplitExitEdges() local
1188 SmallVector<BasicBlock *, 4> Preds(pred_begin(ExitBlock), in SplitExitEdges()
1189 pred_end(ExitBlock)); in SplitExitEdges()
1193 SplitBlockPredecessors(ExitBlock, Preds, ".us-lcssa", DT, LI, in SplitExitEdges()
DLoopDistribute.cpp436 BasicBlock *ExitBlock = L->getExitBlock(); in cloneLoops() local
437 assert(ExitBlock && "No single exit block"); in cloneLoops()
458 Part->getVMap()[ExitBlock] = TopPH; in cloneLoops()
/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/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DLoopUnswitch.cpp143 BasicBlock *ExitBlock);
423 BasicBlock *ExitBlock = 0; in UnswitchIfProfitable() local
424 if (IsTrivialUnswitchCondition(LoopCond, &CondVal, &ExitBlock)) { in UnswitchIfProfitable()
427 UnswitchTrivialCondition(currentLoop, LoopCond, CondVal, ExitBlock); in UnswitchIfProfitable()
516 BasicBlock *ExitBlock) { in UnswitchTrivialCondition() argument
535 assert(!L->contains(ExitBlock) && "Exit block is in the loop?"); in UnswitchTrivialCondition()
536 BasicBlock *NewExit = SplitBlock(ExitBlock, ExitBlock->begin(), this); in UnswitchTrivialCondition()
561 BasicBlock *ExitBlock = ExitBlocks[i]; in SplitExitEdges() local
562 SmallVector<BasicBlock *, 4> Preds(pred_begin(ExitBlock), in SplitExitEdges()
563 pred_end(ExitBlock)); in SplitExitEdges()
[all …]
DLICM.cpp506 BasicBlock *ExitBlock = ExitBlocks[i]; in sink() local
508 if (!DT->dominates(InstOrigBB, ExitBlock)) in sink()
512 BasicBlock::iterator InsertPt = ExitBlock->getFirstInsertionPt(); in sink()
525 ExitBlock->getInstList().insert(InsertPt, New); in sink()
530 SSA.AddAvailableValue(ExitBlock, New); in sink()
645 BasicBlock *ExitBlock = LoopExitBlocks[i]; in doExtraRewritesBeforeFinalDeletion() local
646 Value *LiveInValue = SSA.GetValueInMiddleOfBlock(ExitBlock); in doExtraRewritesBeforeFinalDeletion()
647 Instruction *InsertPos = ExitBlock->getFirstInsertionPt(); in doExtraRewritesBeforeFinalDeletion()
/external/swiftshader/third_party/llvm-7.0/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/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/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-7.0/llvm/lib/Transforms/IPO/
DPartialInlining.cpp186 BasicBlock *EntryBlock, BasicBlock *ExitBlock, in OutlineRegionInfo()
188 : Region(Region), EntryBlock(EntryBlock), ExitBlock(ExitBlock), in OutlineRegionInfo()
192 BasicBlock *ExitBlock; member
411 BasicBlock *ExitBlock = nullptr; in computeOutliningColdRegionsInfo() local
415 if (ExitBlock) { in computeOutliningColdRegionsInfo()
425 ExitBlock = Block; in computeOutliningColdRegionsInfo()
429 return ExitBlock; in computeOutliningColdRegionsInfo()
495 BasicBlock *ExitBlock = nullptr; in computeOutliningColdRegionsInfo() local
497 if (!(ExitBlock = IsSingleExit(DominateVector))) in computeOutliningColdRegionsInfo()
524 BasicBlock *ReturnBlock = ExitBlock->getSingleSuccessor(); in computeOutliningColdRegionsInfo()
[all …]
/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-7.0/llvm/lib/Transforms/Instrumentation/
DInstrProfiling.cpp187 BasicBlock *ExitBlock = ExitBlocks[i]; in doExtraRewritesBeforeFinalDeletion() local
192 Value *LiveInValue = SSA.GetValueInMiddleOfBlock(ExitBlock); in doExtraRewritesBeforeFinalDeletion()
207 auto *TargetLoop = LI.getLoopFor(ExitBlock); in doExtraRewritesBeforeFinalDeletion()
238 for (BasicBlock *ExitBlock : LoopExitBlocks) { in PGOCounterPromoter()
239 if (BlockSet.insert(ExitBlock).second) { in PGOCounterPromoter()
240 ExitBlocks.push_back(ExitBlock); in PGOCounterPromoter()
241 InsertPts.push_back(&*ExitBlock->getFirstInsertionPt()); in PGOCounterPromoter()
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DLoopSimplify.cpp221 BasicBlock *ExitBlock = *I; in ProcessLoop() local
222 for (pred_iterator PI = pred_begin(ExitBlock), PE = pred_end(ExitBlock); in ProcessLoop()
227 if (RewriteLoopExitBlock(L, ExitBlock)) { in ProcessLoop()
/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/llvm-7.0/llvm/lib/Bitcode/Writer/
DBitcodeWriter.cpp752 Stream.ExitBlock(); in writeAttributeGroupTable()
774 Stream.ExitBlock(); in writeAttributeTable()
931 Stream.ExitBlock(); in writeTypeTable()
2062 Stream.ExitBlock(); in writeModuleMetadata()
2073 Stream.ExitBlock(); in writeFunctionMetadata()
2119 Stream.ExitBlock(); in writeFunctionMetadataAttachment()
2143 Stream.ExitBlock(); in writeModuleMetadataKinds()
2170 Stream.ExitBlock(); in writeOperandBundleTags()
2188 Stream.ExitBlock(); in writeSyncScopeNames()
2453 Stream.ExitBlock(); in writeConstants()
[all …]
/external/swiftshader/third_party/LLVM/lib/Bitcode/Writer/
DBitcodeWriter.cpp187 Stream.ExitBlock(); in WriteAttributeTable()
348 Stream.ExitBlock(); in WriteTypeTable()
633 Stream.ExitBlock(); in WriteModuleMetadata()
653 Stream.ExitBlock(); in WriteFunctionLocalMetadata()
686 Stream.ExitBlock(); in WriteMetadataAttachment()
710 Stream.ExitBlock(); in WriteModuleMetadataStore()
957 Stream.ExitBlock(); in WriteConstants()
1340 Stream.ExitBlock(); in WriteValueSymbolTable()
1412 Stream.ExitBlock(); in WriteFunction()
1573 Stream.ExitBlock(); in WriteBlockInfo()
[all …]
/external/swiftshader/third_party/subzero/pnacl-llvm/include/llvm/Bitcode/NaCl/
DNaClBitcodeParser.h455 virtual void ExitBlock() {} in ExitBlock() function
643 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-7.0/llvm/include/llvm/Transforms/Utils/
DCodeExtractor.h129 BasicBlock *&ExitBlock) const;
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DLoopUtils.cpp1362 auto *ExitBlock = L->getUniqueExitBlock(); in deleteDeadLoop() local
1363 assert(ExitBlock && "Should have a unique exit block!"); in deleteDeadLoop()
1395 Builder.CreateCondBr(Builder.getFalse(), L->getHeader(), ExitBlock); in deleteDeadLoop()
1401 for (PHINode &P : ExitBlock->phis()) { in deleteDeadLoop()
1424 Builder.CreateBr(ExitBlock); in deleteDeadLoop()
1431 DT->insertEdge(Preheader, ExitBlock); in deleteDeadLoop()

12