Skip to content

Commit 5d2867b

Browse files
committed
Revert "[SimpleLoopUnswitch] Preserve one PHI when removing a predecessor of a"
This reverts commit 6b80bdb.
1 parent 6b80bdb commit 5d2867b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1678,7 +1678,7 @@ deleteDeadClonedBlocks(Loop &L, ArrayRef<BasicBlock *> ExitBlocks,
16781678
if (BasicBlock *ClonedBB = cast_or_null<BasicBlock>(VMap->lookup(BB)))
16791679
if (!DT.isReachableFromEntry(ClonedBB)) {
16801680
for (BasicBlock *SuccBB : successors(ClonedBB))
1681-
SuccBB->removePredecessor(ClonedBB, /*KeepOneInputPHIs*/ true);
1681+
SuccBB->removePredecessor(ClonedBB);
16821682
DeadBlocks.push_back(ClonedBB);
16831683
}
16841684

0 commit comments

Comments
 (0)