Home
last modified time | relevance | path

Searched refs:OnlyPred (Results 1 – 2 of 2) sorted by relevance

/external/llvm/lib/Transforms/Utils/
DLoopUnroll.cpp81 BasicBlock *OnlyPred = BB->getSinglePredecessor(); in FoldBlockIntoPredecessor() local
82 if (!OnlyPred) return nullptr; in FoldBlockIntoPredecessor()
84 if (OnlyPred->getTerminator()->getNumSuccessors() != 1) in FoldBlockIntoPredecessor()
87 DEBUG(dbgs() << "Merging: " << *BB << "into: " << *OnlyPred); in FoldBlockIntoPredecessor()
97 OnlyPred->getInstList().pop_back(); in FoldBlockIntoPredecessor()
101 BB->replaceAllUsesWith(OnlyPred); in FoldBlockIntoPredecessor()
104 OnlyPred->getInstList().splice(OnlyPred->end(), BB->getInstList()); in FoldBlockIntoPredecessor()
123 if (!OldName.empty() && !OnlyPred->hasName()) in FoldBlockIntoPredecessor()
124 OnlyPred->setName(OldName); in FoldBlockIntoPredecessor()
128 return OnlyPred; in FoldBlockIntoPredecessor()
DSimplifyCFG.cpp4275 if (BasicBlock *OnlyPred = BB->getSinglePredecessor()) in SimplifySwitch() local
4276 if (SimplifyEqualityComparisonWithOnlyPredecessor(SI, OnlyPred, Builder)) in SimplifySwitch()
4479 if (BasicBlock *OnlyPred = BB->getSinglePredecessor()) in SimplifyCondBranch() local
4480 if (SimplifyEqualityComparisonWithOnlyPredecessor(BI, OnlyPred, Builder)) in SimplifyCondBranch()