diff options
Diffstat (limited to 'llvm/lib/Transforms/Scalar')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp index 04a25052635..a1533019128 100644 --- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -5292,7 +5292,7 @@ void LSRInstance::RewriteForPHI( NewBB = SplitCriticalEdge(BB, Parent, CriticalEdgeSplittingOptions(&DT, &LI) .setMergeIdenticalEdges() - .setDontDeleteUselessPHIs()); + .setKeepOneInputPHIs()); } else { SmallVector<BasicBlock*, 2> NewBBs; SplitLandingPadPredecessors(Parent, BB, "", "", NewBBs, &DT, &LI); diff --git a/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp b/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp index 8113427cab7..db7da8edd51 100644 --- a/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp +++ b/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp @@ -761,7 +761,7 @@ static bool unswitchTrivialSwitch(Loop &L, SwitchInst &SI, DominatorTree &DT, continue; } CommonSuccBB->removePredecessor(BB, - /*DontDeleteUselessPHIs*/ true); + /*KeepOneInputPHIs*/ true); } // Now nuke the switch and replace it with a direct branch. SI.eraseFromParent(); @@ -1069,7 +1069,7 @@ static BasicBlock *buildClonedLoopBlocks( continue; ClonedSuccBB->removePredecessor(ClonedParentBB, - /*DontDeleteUselessPHIs*/ true); + /*KeepOneInputPHIs*/ true); } // Replace the cloned branch with an unconditional branch to the cloned @@ -2078,7 +2078,7 @@ static void unswitchNontrivialInvariants( "Only one possible unswitched block for a branch!"); BasicBlock *UnswitchedSuccBB = *UnswitchedSuccBBs.begin(); UnswitchedSuccBB->removePredecessor(ParentBB, - /*DontDeleteUselessPHIs*/ true); + /*KeepOneInputPHIs*/ true); DTUpdates.push_back({DominatorTree::Delete, ParentBB, UnswitchedSuccBB}); } else { // Note that we actually want to remove the parent block as a predecessor @@ -2093,7 +2093,7 @@ static void unswitchNontrivialInvariants( for (auto &Case : NewSI->cases()) Case.getCaseSuccessor()->removePredecessor( ParentBB, - /*DontDeleteUselessPHIs*/ true); + /*KeepOneInputPHIs*/ true); // We need to use the set to populate domtree updates as even when there // are multiple cases pointing at the same successor we only want to |