• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/

Lines Matching refs:Preds

579                                       ArrayRef<BasicBlock *> Preds,
596 MSSAU->wireOldPredecessorsToNewImmediatePredecessor(OldBB, NewBB, Preds);
609 for (BasicBlock *Pred : Preds) {
610 // Preds that are not reachable from entry should not be used to identify if
643 for (BasicBlock *Pred : Preds) {
670 ArrayRef<BasicBlock *> Preds, BranchInst *BI,
673 SmallPtrSet<BasicBlock *, 16> PredSet(Preds.begin(), Preds.end());
681 InVal = PN->getIncomingValueForBlock(Preds[0]);
717 PHINode::Create(PN->getType(), Preds.size(), PN->getName() + ".ph", BI);
736 ArrayRef<BasicBlock *> Preds,
750 SplitLandingPadPredecessors(BB, Preds, Suffix, NewName.c_str(), NewBBs, DT,
769 // Move the edges from Preds to point to NewBB instead of BB.
770 for (unsigned i = 0, e = Preds.size(); i != e; ++i) {
774 assert(!isa<IndirectBrInst>(Preds[i]->getTerminator()) &&
776 assert(!isa<CallBrInst>(Preds[i]->getTerminator()) &&
778 Preds[i]->getTerminator()->replaceUsesOfWith(BB, NewBB);
782 // node becomes an incoming value for BB's phi node. However, if the Preds
785 if (Preds.empty()) {
793 UpdateAnalysisInformation(BB, NewBB, Preds, DT, LI, MSSAU, PreserveLCSSA,
796 if (!Preds.empty()) {
798 UpdatePHINodes(BB, NewBB, Preds, BI, HasLoopExit);
805 ArrayRef<BasicBlock *> Preds,
813 // Create a new basic block for OrigBB's predecessors listed in Preds. Insert
824 // Move the edges from Preds to point to NewBB1 instead of OrigBB.
825 for (unsigned i = 0, e = Preds.size(); i != e; ++i) {
829 assert(!isa<IndirectBrInst>(Preds[i]->getTerminator()) &&
831 Preds[i]->getTerminator()->replaceUsesOfWith(OrigBB, NewBB1);
835 UpdateAnalysisInformation(OrigBB, NewBB1, Preds, DT, LI, MSSAU, PreserveLCSSA,
839 UpdatePHINodes(OrigBB, NewBB1, Preds, BI1, HasLoopExit);