/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/ |
D | DeferredDominanceTest.cpp | 82 EXPECT_EQ(BB0->getTerminator()->getNumSuccessors(), 4u); in TEST() 83 BB0->getTerminator()->eraseFromParent(); in TEST() 85 EXPECT_EQ(BB0->getTerminator()->getNumSuccessors(), 2u); in TEST() 94 ASSERT_FALSE(isa<UnreachableInst>(BB3->getTerminator())); in TEST() 98 ASSERT_TRUE(isa<UnreachableInst>(BB3->getTerminator())); in TEST() 139 EXPECT_EQ(BB0->getTerminator()->getNumSuccessors(), 3u); in TEST() 140 BB0->getTerminator()->eraseFromParent(); in TEST() 142 EXPECT_EQ(BB0->getTerminator()->getNumSuccessors(), 1u); in TEST() 152 EXPECT_EQ(BB0->getTerminator()->getNumSuccessors(), 1u); in TEST() 153 BB0->getTerminator()->eraseFromParent(); in TEST() [all …]
|
D | CFGBuilder.cpp | 44 if (isa<UnreachableInst>(From->getTerminator())) in ConnectBlocks() 45 From->getTerminator()->eraseFromParent(); in ConnectBlocks() 46 if (!From->getTerminator()) { in ConnectBlocks() 52 SwitchInst *SI = cast<SwitchInst>(From->getTerminator()); in ConnectBlocks() 63 SwitchInst *SI = cast<SwitchInst>(From->getTerminator()); in DisconnectBlocks() 174 EXPECT_TRUE(isa<SwitchInst>(B.getOrAddBlock("entry")->getTerminator())); in TEST() 175 EXPECT_TRUE(isa<SwitchInst>(B.getOrAddBlock("a")->getTerminator())); in TEST() 176 EXPECT_TRUE(isa<UnreachableInst>(B.getOrAddBlock("b")->getTerminator())); in TEST() 177 EXPECT_TRUE(isa<SwitchInst>(B.getOrAddBlock("d")->getTerminator())); in TEST() 179 auto *DSwitch = cast<SwitchInst>(B.getOrAddBlock("d")->getTerminator()); in TEST() [all …]
|
D | DomTreeUpdaterTest.cpp | 72 SwitchInst *SI = dyn_cast<SwitchInst>(BB0->getTerminator()); in TEST() 91 EXPECT_EQ(BB0->getTerminator()->getNumSuccessors(), 3u); in TEST() 99 EXPECT_EQ(BB0->getTerminator()->getNumSuccessors(), 2u); in TEST() 103 ASSERT_FALSE(isa<UnreachableInst>(BB3->getTerminator())); in TEST() 194 EXPECT_EQ(NewEntry->getTerminator()->getNumSuccessors(), 1u); in TEST() 195 NewEntry->getTerminator()->eraseFromParent(); in TEST() 197 EXPECT_EQ(BB0->getTerminator()->getNumSuccessors(), 1u); in TEST() 207 ASSERT_FALSE(isa<UnreachableInst>(BB0->getTerminator())); in TEST() 271 EXPECT_EQ(BB0->getTerminator()->getNumSuccessors(), 4u); in TEST() 272 BB0->getTerminator()->eraseFromParent(); in TEST() [all …]
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | SjLjEHPrepare.cpp | 171 LPad->getTerminator()->eraseFromParent(); in splitLandingPad() 411 if (ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator())) { in insertSjLjEHSupport() 415 } else if (InvokeInst *II = dyn_cast<InvokeInst>(BB->getTerminator())) { in insertSjLjEHSupport() 417 } else if (UnwindInst *UI = dyn_cast<UnwindInst>(BB->getTerminator())) { in insertSjLjEHSupport() 449 if (InvokeInst *II = dyn_cast<InvokeInst>(F.begin()->getTerminator())) { in insertSjLjEHSupport() 495 if (InvokeInst *II = dyn_cast<InvokeInst>(BB->getTerminator())) in insertSjLjEHSupport() 518 EntryBB->getTerminator()); in insertSjLjEHSupport() 523 EntryBB->getTerminator()); in insertSjLjEHSupport() 527 EntryBB->getTerminator()); in insertSjLjEHSupport() 532 EntryBB->getTerminator()); in insertSjLjEHSupport() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | FlattenCFG.cpp | 152 BranchInst *PBI = dyn_cast<BranchInst>(Pred->getTerminator()); in FlattenParallelAndOr() 224 BranchInst *BPS = dyn_cast<BranchInst>(PS->getTerminator()); in FlattenParallelAndOr() 235 TerminatorInst *TBB = LastCondBlock->getTerminator(); in FlattenParallelAndOr() 238 BranchInst *PBI1 = dyn_cast<BranchInst>(PS1->getTerminator()); in FlattenParallelAndOr() 239 BranchInst *PBI2 = dyn_cast<BranchInst>(PS2->getTerminator()); in FlattenParallelAndOr() 244 (PS1->getTerminator()->getSuccessor(0) != PS2)) { in FlattenParallelAndOr() 247 (PS2->getTerminator()->getSuccessor(0) != PS1)) in FlattenParallelAndOr() 255 BranchInst *BI = dyn_cast<BranchInst>(CurrBlock->getTerminator()); in FlattenParallelAndOr() 282 BranchInst *PBI = dyn_cast<BranchInst>(FirstCondBlock->getTerminator()); in FlattenParallelAndOr() 293 PBI = cast<BranchInst>(FirstCondBlock->getTerminator()); in FlattenParallelAndOr() [all …]
|
D | BasicBlockUtils.cpp | 52 TerminatorInst *BBTerm = BB->getTerminator(); in DeleteDeadBlock() 134 if (PredBB->getTerminator()->isExceptional()) in MergeBlockIntoPredecessor() 268 TerminatorInst *LatchTerm = BB->getTerminator(); in SplitEdge() 285 assert(BB->getTerminator()->getNumSuccessors() == 1 && in SplitEdge() 287 return SplitBlock(BB, BB->getTerminator(), DT, LI); in SplitEdge() 295 TerminatorInst *TI = BB.getTerminator(); in SplitAllCriticalEdges() 515 assert(!isa<IndirectBrInst>(Preds[i]->getTerminator()) && in SplitBlockPredecessors() 517 Preds[i]->getTerminator()->replaceUsesOfWith(BB, NewBB); in SplitBlockPredecessors() 567 assert(!isa<IndirectBrInst>(Preds[i]->getTerminator()) && in SplitLandingPadPredecessors() 569 Preds[i]->getTerminator()->replaceUsesOfWith(OrigBB, NewBB1); in SplitLandingPadPredecessors() [all …]
|
D | LoopUnrollRuntime.cpp | 132 Instruction *InsertPt = PrologExit->getTerminator(); in ConnectProlog() 254 Instruction *InsertPt = NewExit->getTerminator(); in ConnectEpilog() 317 InsertTop->getTerminator()->setSuccessor(0, NewBB); in CloneLoopBlocks() 334 VMap.erase((*BB)->getTerminator()); in CloneLoopBlocks() 336 BranchInst *LatchBR = cast<BranchInst>(NewBB->getTerminator()); in CloneLoopBlocks() 547 BranchInst *LatchBR = cast<BranchInst>(Latch->getTerminator()); in UnrollRuntimeLoopRemainder() 600 BranchInst *PreHeaderBR = cast<BranchInst>(PreHeader->getTerminator()); in UnrollRuntimeLoopRemainder() 635 NewPreHeader = SplitBlock(PreHeader, PreHeader->getTerminator(), DT, LI); in UnrollRuntimeLoopRemainder() 644 auto *NewExitTerminator = NewExit->getTerminator(); in UnrollRuntimeLoopRemainder() 645 NewExitTerminator->setDebugLoc(Header->getTerminator()->getDebugLoc()); in UnrollRuntimeLoopRemainder() [all …]
|
D | LoopRotationUtils.cpp | 174 BasicBlock *HeaderExit = Header->getTerminator()->getSuccessor(0); in shouldRotateLoopExitingLatch() 176 HeaderExit = Header->getTerminator()->getSuccessor(1); in shouldRotateLoopExitingLatch() 208 BranchInst *BI = dyn_cast<BranchInst>(OrigHeader->getTerminator()); in rotateLoop() 301 TerminatorInst *LoopEntryBranch = OrigPreheader->getTerminator(); in rotateLoop() 377 TerminatorInst *TI = OrigHeader->getTerminator(); in rotateLoop() 423 BranchInst *PHBI = cast<BranchInst>(OrigPreheader->getTerminator()); in rotateLoop() 450 if (isa<IndirectBrInst>(ExitPred->getTerminator())) in rotateLoop() 569 BranchInst *Jmp = dyn_cast<BranchInst>(Latch->getTerminator()); in simplifyLoopLatch() 577 BranchInst *BI = dyn_cast<BranchInst>(LastExit->getTerminator()); in simplifyLoopLatch()
|
/external/llvm/lib/Transforms/Utils/ |
D | FlattenCFG.cpp | 139 BranchInst *PBI = dyn_cast<BranchInst>(Pred->getTerminator()); in FlattenParallelAndOr() 211 BranchInst *BPS = dyn_cast<BranchInst>(PS->getTerminator()); in FlattenParallelAndOr() 222 TerminatorInst *TBB = LastCondBlock->getTerminator(); in FlattenParallelAndOr() 225 BranchInst *PBI1 = dyn_cast<BranchInst>(PS1->getTerminator()); in FlattenParallelAndOr() 226 BranchInst *PBI2 = dyn_cast<BranchInst>(PS2->getTerminator()); in FlattenParallelAndOr() 231 (PS1->getTerminator()->getSuccessor(0) != PS2)) { in FlattenParallelAndOr() 234 (PS2->getTerminator()->getSuccessor(0) != PS1)) in FlattenParallelAndOr() 242 BranchInst *BI = dyn_cast<BranchInst>(CurrBlock->getTerminator()); in FlattenParallelAndOr() 269 BranchInst *PBI = dyn_cast<BranchInst>(FirstCondBlock->getTerminator()); in FlattenParallelAndOr() 280 PBI = cast<BranchInst>(FirstCondBlock->getTerminator()); in FlattenParallelAndOr() [all …]
|
D | BasicBlockUtils.cpp | 38 TerminatorInst *BBTerm = BB->getTerminator(); in DeleteDeadBlock() 108 if (PredBB->getTerminator()->isExceptional()) in MergeBlockIntoPredecessor() 215 TerminatorInst *LatchTerm = BB->getTerminator(); in SplitEdge() 232 assert(BB->getTerminator()->getNumSuccessors() == 1 && in SplitEdge() 234 return SplitBlock(BB, BB->getTerminator(), DT, LI); in SplitEdge() 242 TerminatorInst *TI = BB.getTerminator(); in SplitAllCriticalEdges() 448 assert(!isa<IndirectBrInst>(Preds[i]->getTerminator()) && in SplitBlockPredecessors() 450 Preds[i]->getTerminator()->replaceUsesOfWith(BB, NewBB); in SplitBlockPredecessors() 498 assert(!isa<IndirectBrInst>(Preds[i]->getTerminator()) && in SplitLandingPadPredecessors() 500 Preds[i]->getTerminator()->replaceUsesOfWith(OrigBB, NewBB1); in SplitLandingPadPredecessors() [all …]
|
D | LoopUnrollRuntime.cpp | 117 Instruction *InsertPt = PrologExit->getTerminator(); in ConnectProlog() 247 Instruction *InsertPt = NewExit->getTerminator(); in ConnectEpilog() 307 InsertTop->getTerminator()->setSuccessor(0, NewBB); in CloneLoopBlocks() 313 VMap.erase((*BB)->getTerminator()); in CloneLoopBlocks() 315 BranchInst *LatchBR = cast<BranchInst>(NewBB->getTerminator()); in CloneLoopBlocks() 470 BranchInst *PreHeaderBR = cast<BranchInst>(PreHeader->getTerminator()); in UnrollRuntimeLoopRemainder() 506 NewPreHeader = SplitBlock(PreHeader, PreHeader->getTerminator(), DT, LI); in UnrollRuntimeLoopRemainder() 513 EpilogPreHeader = SplitBlock(NewExit, NewExit->getTerminator(), DT, LI); in UnrollRuntimeLoopRemainder() 520 PrologExit = SplitBlock(PrologPreHeader, PrologPreHeader->getTerminator(), in UnrollRuntimeLoopRemainder() 524 NewPreHeader = SplitBlock(PrologExit, PrologExit->getTerminator(), DT, LI); in UnrollRuntimeLoopRemainder() [all …]
|
/external/llvm/tools/llvm-stress/ |
D | llvm-stress.cpp | 302 Value *V = new LoadInst(Ptr, "L", BB->getTerminator()); in Act() 321 new StoreInst(Val, Ptr, BB->getTerminator()); in Act() 343 Instruction* Term = BB->getTerminator(); in Act() 433 "E", BB->getTerminator()); in Act() 460 BB->getTerminator()); in Act() 476 "I", BB->getTerminator()); in Act() 504 new BitCastInst(V, DestTy, "PC", BB->getTerminator())); in Act() 513 new BitCastInst(V, DestTy, "BC", BB->getTerminator())); in Act() 521 new TruncInst(V, DestTy, "Tr", BB->getTerminator())); in Act() 526 new ZExtInst(V, DestTy, "ZE", BB->getTerminator())); in Act() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-stress/ |
D | llvm-stress.cpp | 347 Value *V = new LoadInst(Ptr, "L", BB->getTerminator()); in Act() 368 new StoreInst(Val, Ptr, BB->getTerminator()); in Act() 390 Instruction* Term = BB->getTerminator(); in Act() 488 "E", BB->getTerminator()); in Act() 516 BB->getTerminator()); in Act() 532 "I", BB->getTerminator()); in Act() 560 new BitCastInst(V, DestTy, "PC", BB->getTerminator())); in Act() 569 new BitCastInst(V, DestTy, "BC", BB->getTerminator())); in Act() 576 new TruncInst(V, DestTy, "Tr", BB->getTerminator())); in Act() 581 new ZExtInst(V, DestTy, "ZE", BB->getTerminator())); in Act() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | LowerInvoke.cpp | 175 if (InvokeInst *II = dyn_cast<InvokeInst>(BB->getTerminator())) { in insertCheapEHSupport() 196 } else if (UnwindInst *UI = dyn_cast<UnwindInst>(BB->getTerminator())) { in insertCheapEHSupport() 412 if (ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator())) { in insertExpensiveEHSupport() 416 } else if (InvokeInst *II = dyn_cast<InvokeInst>(BB->getTerminator())) { in insertExpensiveEHSupport() 418 } else if (UnwindInst *UI = dyn_cast<UnwindInst>(BB->getTerminator())) { in insertExpensiveEHSupport() 460 EntryBB->getTerminator()); in insertExpensiveEHSupport() 464 EntryBB->getTerminator()); in insertExpensiveEHSupport() 465 new StoreInst(OldBuf, OldJmpBufPtr, true, EntryBB->getTerminator()); in insertExpensiveEHSupport() 468 new StoreInst(JmpBuf, JBListHead, true, EntryBB->getTerminator()); in insertExpensiveEHSupport() 486 InvokeNum, true, EntryBB->getTerminator()); in insertExpensiveEHSupport() [all …]
|
D | SimplifyCFG.cpp | 141 BranchInst *Pred1Br = dyn_cast<BranchInst>(Pred1->getTerminator()); in GetIfCondition() 142 BranchInst *Pred2Br = dyn_cast<BranchInst>(Pred2->getTerminator()); in GetIfCondition() 194 BranchInst *BI = dyn_cast<BranchInst>(CommonPred->getTerminator()); in GetIfCondition() 246 BranchInst *BI = dyn_cast<BranchInst>(PBB->getTerminator()); in DominatesMergePoint() 552 Value *PredVal = isValueEqualityComparison(Pred->getTerminator()); in SimplifyEqualityComparisonWithOnlyPredecessor() 561 BasicBlock *PredDef = GetValueEqualityComparisonCases(Pred->getTerminator(), in SimplifyEqualityComparisonWithOnlyPredecessor() 590 DEBUG(dbgs() << "Threading pred instr: " << *Pred->getTerminator() in SimplifyEqualityComparisonWithOnlyPredecessor() 603 DEBUG(dbgs() << "Threading pred instr: " << *Pred->getTerminator() in SimplifyEqualityComparisonWithOnlyPredecessor() 652 DEBUG(dbgs() << "Threading pred instr: " << *Pred->getTerminator() in SimplifyEqualityComparisonWithOnlyPredecessor() 696 TerminatorInst *PTI = Pred->getTerminator(); in FoldValueComparisonIntoPredecessors() [all …]
|
D | BasicBlockUtils.cpp | 39 TerminatorInst *BBTerm = BB->getTerminator(); in DeleteDeadBlock() 126 if (isa<InvokeInst>(PredBB->getTerminator())) return false; in MergeBlockIntoPredecessor() 243 TerminatorInst *Term = BB->getTerminator(); in GetSuccessorNumber() 261 TerminatorInst *LatchTerm = BB->getTerminator(); in SplitEdge() 278 assert(BB->getTerminator()->getNumSuccessors() == 1 && in SplitEdge() 280 return SplitBlock(BB, BB->getTerminator(), P); in SplitEdge() 471 assert(!isa<IndirectBrInst>(Preds[i]->getTerminator()) && in SplitBlockPredecessors() 473 Preds[i]->getTerminator()->replaceUsesOfWith(BB, NewBB); in SplitBlockPredecessors() 533 assert(!isa<IndirectBrInst>(Preds[i]->getTerminator()) && in SplitLandingPadPredecessors() 535 Preds[i]->getTerminator()->replaceUsesOfWith(OrigBB, NewBB1); in SplitLandingPadPredecessors() [all …]
|
D | LoopSimplify.cpp | 172 TerminatorInst *TI = (*I)->getTerminator(); in ProcessLoop() 174 (*I)->getTerminator()->eraseFromParent(); in ProcessLoop() 187 if (BranchInst *BI = dyn_cast<BranchInst>((*I)->getTerminator())) in ProcessLoop() 295 BranchInst *BI = dyn_cast<BranchInst>(ExitingBlock->getTerminator()); in ProcessLoop() 311 Preheader ? Preheader->getTerminator() : 0)) { in ProcessLoop() 374 if (isa<IndirectBrInst>(P->getTerminator())) return 0; in InsertPreheaderForLoop() 386 NewBB->getTerminator()->setDebugLoc(Header->getFirstNonPHI()->getDebugLoc()); in InsertPreheaderForLoop() 406 if (isa<IndirectBrInst>(P->getTerminator())) return 0; in RewriteLoopExitBlock() 544 if (isa<IndirectBrInst>(PN->getIncomingBlock(i)->getTerminator())) in SeparateNestedLoop() 649 if (isa<IndirectBrInst>(P->getTerminator())) in InsertUniqueBackedgeBlock() [all …]
|
D | UnifyFunctionExitNodes.cpp | 56 if (isa<ReturnInst>(I->getTerminator())) in runOnFunction() 58 else if (isa<UnwindInst>(I->getTerminator())) in runOnFunction() 60 else if (isa<UnreachableInst>(I->getTerminator())) in runOnFunction() 135 PN->addIncoming(BB->getTerminator()->getOperand(0), BB); in runOnFunction()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUUnifyDivergentExitNodes.cpp | 108 if (!DA.isUniform(Top->getTerminator())) in isUniformlyReached() 146 PN->addIncoming(BB->getTerminator()->getOperand(0), BB); in unifyReturnBlockSet() 149 BB->getTerminator()->eraseFromParent(); in unifyReturnBlockSet() 177 if (isa<ReturnInst>(BB->getTerminator())) { in runOnFunction() 180 } else if (isa<UnreachableInst>(BB->getTerminator())) { in runOnFunction() 183 } else if (BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator())) { in runOnFunction() 227 BB->getTerminator()->eraseFromParent(); in runOnFunction() 239 UnreachableBlock->getTerminator()->eraseFromParent(); in runOnFunction()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | JumpThreading.cpp | 204 BranchInst *CondBr = dyn_cast<BranchInst>(BB->getTerminator()); in updatePredecessorProfileMetadata() 221 BranchInst *PredBr = dyn_cast<BranchInst>(PredBB->getTerminator()); in updatePredecessorProfileMetadata() 249 BranchInst *PredBr = cast<BranchInst>(PredBB->getTerminator()); in updatePredecessorProfileMetadata() 389 << "' with terminator: " << *BB.getTerminator() in runImpl() 400 auto *BI = dyn_cast<BranchInst>(BB.getTerminator()); in runImpl() 466 if (BB->getTerminator() == StopAt) { in getJumpThreadDuplicationCost() 945 TerminatorInst *BBTerm = BB->getTerminator(); in GetBestDestForJumpOnUndef() 986 const TerminatorInst *TI = SinglePred->getTerminator(); in ProcessBlock() 1042 Instruction *Terminator = BB->getTerminator(); in ProcessBlock() 1078 TerminatorInst *BBTerm = BB->getTerminator(); in ProcessBlock() [all …]
|
D | CallSiteSplitting.cpp | 133 auto *BI = dyn_cast<BranchInst>(From->getTerminator()); in recordCondition() 145 Conditions.push_back({Cmp, From->getTerminator()->getSuccessor(0) == To in recordCondition() 196 if (Preds.size() != 2 || isa<IndirectBrInst>(Preds[0]->getTerminator()) || in canSplitCallSite() 197 isa<IndirectBrInst>(Preds[1]->getTerminator())) in canSplitCallSite() 251 TerminatorInst *TI = SplitBB->getTerminator(); in copyMustTailReturn() 332 &*std::prev(SplitBlock->getTerminator()->getIterator()); in splitCallSite() 367 Splits[i]->getTerminator()->eraseFromParent(); in splitCallSite() 485 auto IE = BB.getTerminator()->getIterator(); in doCallSiteSplitting() 490 while (II != IE && &*II != BB.getTerminator()) { in doCallSiteSplitting()
|
/external/llvm/lib/Transforms/Scalar/ |
D | JumpThreading.cpp | 209 << "' with terminator: " << *BB->getTerminator() << '\n'); in runImpl() 217 BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator()); in runImpl() 269 const TerminatorInst *BBTerm = BB->getTerminator(); in getJumpThreadDuplicationCost() 674 TerminatorInst *BBTerm = BB->getTerminator(); in GetBestDestForJumpOnUndef() 715 const TerminatorInst *TI = SinglePred->getTerminator(); in ProcessBlock() 738 Instruction *Terminator = BB->getTerminator(); in ProcessBlock() 772 TerminatorInst *BBTerm = BB->getTerminator(); in ProcessBlock() 790 << "' folding terminator: " << *BB->getTerminator() << '\n'); in ProcessBlock() 812 BranchInst *CondBr = dyn_cast<BranchInst>(BB->getTerminator()); in ProcessBlock() 870 if (PN->getParent() == BB && isa<BranchInst>(BB->getTerminator())) in ProcessBlock() [all …]
|
D | SimplifyCFGPass.cpp | 66 ReturnInst *Ret = dyn_cast<ReturnInst>(BB.getTerminator()); in mergeEmptyReturnBlocks() 98 cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0)) { in mergeEmptyReturnBlocks() 107 Value *InVal = cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0); in mergeEmptyReturnBlocks() 115 RetBlock->getTerminator()->setOperand(0, RetBlockPHI); in mergeEmptyReturnBlocks() 122 BB.getTerminator()->eraseFromParent(); in mergeEmptyReturnBlocks()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | JumpThreading.cpp | 167 << "' with terminator: " << *BB->getTerminator() << '\n'); in runOnFunction() 175 BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator()); in runOnFunction() 595 TerminatorInst *BBTerm = BB->getTerminator(); in GetBestDestForJumpOnUndef() 636 if (SinglePred->getTerminator()->getNumSuccessors() == 1 && in ProcessBlock() 660 Instruction *Terminator = BB->getTerminator(); in ProcessBlock() 691 TerminatorInst *BBTerm = BB->getTerminator(); in ProcessBlock() 709 << "' folding terminator: " << *BB->getTerminator() << '\n'); in ProcessBlock() 730 BranchInst *CondBr = dyn_cast<BranchInst>(BB->getTerminator()); in ProcessBlock() 792 if (PN->getParent() == BB && isa<BranchInst>(BB->getTerminator())) in ProcessBlock() 798 CondInst->getParent() == BB && isa<BranchInst>(BB->getTerminator())) in ProcessBlock() [all …]
|
D | SimplifyCFGPass.cpp | 160 if (InvokeInst *II = dyn_cast<InvokeInst>(BB->getTerminator())) in MarkAliveBlocks() 220 ReturnInst *Ret = dyn_cast<ReturnInst>(BB.getTerminator()); in MergeEmptyReturnBlocks() 253 cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0)) { in MergeEmptyReturnBlocks() 262 Value *InVal = cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0); in MergeEmptyReturnBlocks() 270 RetBlock->getTerminator()->setOperand(0, RetBlockPHI); in MergeEmptyReturnBlocks() 277 BB.getTerminator()->eraseFromParent(); in MergeEmptyReturnBlocks()
|