[SimplifyCFG] markAliveBlocks(): switch to non-permissive DomTree updates
authorRoman Lebedev <lebedev.ri@gmail.com>
Thu, 7 Jan 2021 22:12:30 +0000 (01:12 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Thu, 7 Jan 2021 23:15:27 +0000 (02:15 +0300)
No actual changes needed, invoke can't have the same block as an unwind
destination and a normal destination.

llvm/lib/Transforms/Utils/Local.cpp

index 1c81be8..76bc836 100644 (file)
@@ -2257,8 +2257,7 @@ static bool markAliveBlocks(Function &F,
           UnwindDestBB->removePredecessor(II->getParent());
           II->eraseFromParent();
           if (DTU)
-            DTU->applyUpdatesPermissive(
-                {{DominatorTree::Delete, BB, UnwindDestBB}});
+            DTU->applyUpdates({{DominatorTree::Delete, BB, UnwindDestBB}});
         } else
           changeToCall(II, DTU);
         Changed = true;