Searched refs:OnlyPred (Results 1 – 4 of 4) sorted by relevance
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | LoopUnroll.cpp | 68 BasicBlock *OnlyPred = BB->getSinglePredecessor(); in FoldBlockIntoPredecessor() local 69 if (!OnlyPred) return 0; in FoldBlockIntoPredecessor() 71 if (OnlyPred->getTerminator()->getNumSuccessors() != 1) in FoldBlockIntoPredecessor() 74 DEBUG(dbgs() << "Merging: " << *BB << "into: " << *OnlyPred); in FoldBlockIntoPredecessor() 84 OnlyPred->getInstList().pop_back(); in FoldBlockIntoPredecessor() 88 BB->replaceAllUsesWith(OnlyPred); in FoldBlockIntoPredecessor() 91 OnlyPred->getInstList().splice(OnlyPred->end(), BB->getInstList()); in FoldBlockIntoPredecessor() 106 if (!OldName.empty() && !OnlyPred->hasName()) in FoldBlockIntoPredecessor() 107 OnlyPred->setName(OldName); in FoldBlockIntoPredecessor() 109 return OnlyPred; in FoldBlockIntoPredecessor()
|
D | SimplifyCFG.cpp | 2594 if (BasicBlock *OnlyPred = BB->getSinglePredecessor()) in SimplifySwitch() local 2595 if (SimplifyEqualityComparisonWithOnlyPredecessor(SI, OnlyPred, Builder)) in SimplifySwitch() 2696 if (BasicBlock *OnlyPred = BB->getSinglePredecessor()) in SimplifyCondBranch() local 2697 if (SimplifyEqualityComparisonWithOnlyPredecessor(BI, OnlyPred, Builder)) in SimplifyCondBranch()
|
/external/llvm/lib/Transforms/Utils/ |
D | LoopUnroll.cpp | 88 BasicBlock *OnlyPred = BB->getSinglePredecessor(); in foldBlockIntoPredecessor() local 89 if (!OnlyPred) return nullptr; in foldBlockIntoPredecessor() 91 if (OnlyPred->getTerminator()->getNumSuccessors() != 1) in foldBlockIntoPredecessor() 94 DEBUG(dbgs() << "Merging: " << *BB << "into: " << *OnlyPred); in foldBlockIntoPredecessor() 104 OnlyPred->getInstList().pop_back(); in foldBlockIntoPredecessor() 108 BB->replaceAllUsesWith(OnlyPred); in foldBlockIntoPredecessor() 111 OnlyPred->getInstList().splice(OnlyPred->end(), BB->getInstList()); in foldBlockIntoPredecessor() 119 DomTreeNode *PredDTN = DT->getNode(OnlyPred); in foldBlockIntoPredecessor() 137 if (!OldName.empty() && !OnlyPred->hasName()) in foldBlockIntoPredecessor() 138 OnlyPred->setName(OldName); in foldBlockIntoPredecessor() [all …]
|
D | SimplifyCFG.cpp | 5047 if (BasicBlock *OnlyPred = BB->getSinglePredecessor()) in SimplifySwitch() local 5048 if (SimplifyEqualityComparisonWithOnlyPredecessor(SI, OnlyPred, Builder)) in SimplifySwitch() 5270 if (BasicBlock *OnlyPred = BB->getSinglePredecessor()) in SimplifyCondBranch() local 5271 if (SimplifyEqualityComparisonWithOnlyPredecessor(BI, OnlyPred, Builder)) in SimplifyCondBranch()
|