projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d59f97b
)
[SimplifyCFG] markAliveBlocks(): switch to non-permissive DomTree updates
author
Roman Lebedev
<lebedev.ri@gmail.com>
Thu, 7 Jan 2021 22:12:30 +0000
(
01:12
+0300)
committer
Roman 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
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/Utils/Local.cpp
b/llvm/lib/Transforms/Utils/Local.cpp
index
1c81be8
..
76bc836
100644
(file)
--- a/
llvm/lib/Transforms/Utils/Local.cpp
+++ b/
llvm/lib/Transforms/Utils/Local.cpp
@@
-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;