Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DLoopUnroll.cpp106 BasicBlock *OnlyPred = BB->getSinglePredecessor(); in foldBlockIntoPredecessor() local
107 if (!OnlyPred) return nullptr; in foldBlockIntoPredecessor()
109 if (OnlyPred->getTerminator()->getNumSuccessors() != 1) in foldBlockIntoPredecessor()
113 << OnlyPred->getName() << "\n"); in foldBlockIntoPredecessor()
123 OnlyPred->getInstList().pop_back(); in foldBlockIntoPredecessor()
127 BB->replaceAllUsesWith(OnlyPred); in foldBlockIntoPredecessor()
130 OnlyPred->getInstList().splice(OnlyPred->end(), BB->getInstList()); in foldBlockIntoPredecessor()
138 DomTreeNode *PredDTN = DT->getNode(OnlyPred); in foldBlockIntoPredecessor()
149 if (!OldName.empty() && !OnlyPred->hasName()) in foldBlockIntoPredecessor()
150 OnlyPred->setName(OldName); in foldBlockIntoPredecessor()
[all …]
H A DSimplifyCFG.cpp5594 if (BasicBlock *OnlyPred = BB->getSinglePredecessor()) in SimplifySwitch() local
5595 if (SimplifyEqualityComparisonWithOnlyPredecessor(SI, OnlyPred, Builder)) in SimplifySwitch()
5826 if (BasicBlock *OnlyPred = BB->getSinglePredecessor()) in SimplifyCondBranch() local
5827 if (SimplifyEqualityComparisonWithOnlyPredecessor(BI, OnlyPred, Builder)) in SimplifyCondBranch()