[SimplifyCFG] DeleteDeadBlocks(): switch to non-permissive DomTree updates
authorRoman Lebedev <lebedev.ri@gmail.com>
Thu, 7 Jan 2021 21:52:20 +0000 (00:52 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Thu, 7 Jan 2021 23:15:27 +0000 (02:15 +0300)
No actual changes needed, DetatchDeadBlocks() was already doing the right thing.

llvm/lib/Transforms/Utils/BasicBlockUtils.cpp

index 4d99067..0b3a259 100644 (file)
@@ -105,7 +105,7 @@ void llvm::DeleteDeadBlocks(ArrayRef <BasicBlock *> BBs, DomTreeUpdater *DTU,
   DetatchDeadBlocks(BBs, DTU ? &Updates : nullptr, KeepOneInputPHIs);
 
   if (DTU)
-    DTU->applyUpdatesPermissive(Updates);
+    DTU->applyUpdates(Updates);
 
   for (BasicBlock *BB : BBs)
     if (DTU)