/external/llvm/lib/Transforms/Scalar/ |
D | JumpThreading.cpp | 269 const TerminatorInst *BBTerm = BB->getTerminator(); in getJumpThreadDuplicationCost() local 272 if (isa<SwitchInst>(BBTerm)) in getJumpThreadDuplicationCost() 276 if (isa<IndirectBrInst>(BBTerm)) in getJumpThreadDuplicationCost() 674 TerminatorInst *BBTerm = BB->getTerminator(); in GetBestDestForJumpOnUndef() local 676 BasicBlock *TestBB = BBTerm->getSuccessor(MinSucc); in GetBestDestForJumpOnUndef() 679 for (unsigned i = 1, e = BBTerm->getNumSuccessors(); i != e; ++i) { in GetBestDestForJumpOnUndef() 680 TestBB = BBTerm->getSuccessor(i); in GetBestDestForJumpOnUndef() 772 TerminatorInst *BBTerm = BB->getTerminator(); in ProcessBlock() local 773 for (unsigned i = 0, e = BBTerm->getNumSuccessors(); i != e; ++i) { in ProcessBlock() 775 BBTerm->getSuccessor(i)->removePredecessor(BB, true); in ProcessBlock() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | JumpThreading.cpp | 595 TerminatorInst *BBTerm = BB->getTerminator(); in GetBestDestForJumpOnUndef() local 597 BasicBlock *TestBB = BBTerm->getSuccessor(MinSucc); in GetBestDestForJumpOnUndef() 600 for (unsigned i = 1, e = BBTerm->getNumSuccessors(); i != e; ++i) { in GetBestDestForJumpOnUndef() 601 TestBB = BBTerm->getSuccessor(i); in GetBestDestForJumpOnUndef() 691 TerminatorInst *BBTerm = BB->getTerminator(); in ProcessBlock() local 692 for (unsigned i = 0, e = BBTerm->getNumSuccessors(); i != e; ++i) { in ProcessBlock() 694 BBTerm->getSuccessor(i)->removePredecessor(BB, true); in ProcessBlock() 698 << "' folding undef terminator: " << *BBTerm << '\n'); in ProcessBlock() 699 BranchInst::Create(BBTerm->getSuccessor(BestSucc), BBTerm); in ProcessBlock() 700 BBTerm->eraseFromParent(); in ProcessBlock()
|
/external/llvm/tools/bugpoint/ |
D | CrashDebugger.cpp | 376 TerminatorInst *BBTerm = BB->getTerminator(); in TestBlocks() local 377 if (BBTerm->isEHPad() || BBTerm->getType()->isTokenTy()) in TestBlocks() 379 if (!BBTerm->getType()->isVoidTy()) in TestBlocks() 380 BBTerm->replaceAllUsesWith(Constant::getNullValue(BBTerm->getType())); in TestBlocks()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | JumpThreading.cpp | 945 TerminatorInst *BBTerm = BB->getTerminator(); in GetBestDestForJumpOnUndef() local 947 BasicBlock *TestBB = BBTerm->getSuccessor(MinSucc); in GetBestDestForJumpOnUndef() 950 for (unsigned i = 1, e = BBTerm->getNumSuccessors(); i != e; ++i) { in GetBestDestForJumpOnUndef() 951 TestBB = BBTerm->getSuccessor(i); in GetBestDestForJumpOnUndef() 1078 TerminatorInst *BBTerm = BB->getTerminator(); in ProcessBlock() local 1079 Updates.reserve(BBTerm->getNumSuccessors()); in ProcessBlock() 1080 for (unsigned i = 0, e = BBTerm->getNumSuccessors(); i != e; ++i) { in ProcessBlock() 1082 BasicBlock *Succ = BBTerm->getSuccessor(i); in ProcessBlock() 1088 << "' folding undef terminator: " << *BBTerm << '\n'); in ProcessBlock() 1089 BranchInst::Create(BBTerm->getSuccessor(BestSucc), BBTerm); in ProcessBlock() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/tools/bugpoint/ |
D | CrashDebugger.cpp | 412 TerminatorInst *BBTerm = BB.getTerminator(); in TestBlocks() local 413 if (BBTerm->isEHPad() || BBTerm->getType()->isTokenTy()) in TestBlocks() 415 if (!BBTerm->getType()->isVoidTy()) in TestBlocks() 416 BBTerm->replaceAllUsesWith(Constant::getNullValue(BBTerm->getType())); in TestBlocks()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | BasicBlockUtils.cpp | 39 TerminatorInst *BBTerm = BB->getTerminator(); in DeleteDeadBlock() local 43 for (unsigned i = 0, e = BBTerm->getNumSuccessors(); i != e; ++i) in DeleteDeadBlock() 44 BBTerm->getSuccessor(i)->removePredecessor(BB); in DeleteDeadBlock()
|
/external/swiftshader/third_party/LLVM/tools/bugpoint/ |
D | CrashDebugger.cpp | 300 TerminatorInst *BBTerm = BB->getTerminator(); in TestBlocks() local 303 BBTerm->replaceAllUsesWith(Constant::getNullValue(BBTerm->getType())); in TestBlocks()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | BasicBlockUtils.cpp | 52 TerminatorInst *BBTerm = BB->getTerminator(); in DeleteDeadBlock() local 58 Updates.reserve(BBTerm->getNumSuccessors()); in DeleteDeadBlock() 59 for (BasicBlock *Succ : BBTerm->successors()) { in DeleteDeadBlock()
|
/external/llvm/lib/Transforms/Utils/ |
D | BasicBlockUtils.cpp | 38 TerminatorInst *BBTerm = BB->getTerminator(); in DeleteDeadBlock() local 42 for (BasicBlock *Succ : BBTerm->successors()) in DeleteDeadBlock()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCISelDAGToDAG.cpp | 405 const TerminatorInst *BBTerm = BB->getTerminator(); in getBranchHint() local 407 if (BBTerm->getNumSuccessors() != 2) return PPC::BR_NO_HINT; in getBranchHint() 409 const BasicBlock *TBB = BBTerm->getSuccessor(0); in getBranchHint() 410 const BasicBlock *FBB = BBTerm->getSuccessor(1); in getBranchHint()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/ |
D | PPCISelDAGToDAG.cpp | 493 const TerminatorInst *BBTerm = BB->getTerminator(); in getBranchHint() local 495 if (BBTerm->getNumSuccessors() != 2) return PPC::BR_NO_HINT; in getBranchHint() 497 const BasicBlock *TBB = BBTerm->getSuccessor(0); in getBranchHint() 498 const BasicBlock *FBB = BBTerm->getSuccessor(1); in getBranchHint()
|