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:
f0eba8c
)
[SimplifyCFG] removeUnwindEdge(): switch to non-permissive DomTree updates
author
Roman Lebedev
<lebedev.ri@gmail.com>
Thu, 7 Jan 2021 22:08:23 +0000
(
01:08
+0300)
committer
Roman Lebedev
<lebedev.ri@gmail.com>
Thu, 7 Jan 2021 23:15:27 +0000
(
02:15
+0300)
No actual changes needed, Catchswitch cannot unwind to one of its catchpads.
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
9f8cec9
..
1c81be8
100644
(file)
--- a/
llvm/lib/Transforms/Utils/Local.cpp
+++ b/
llvm/lib/Transforms/Utils/Local.cpp
@@
-2347,7
+2347,7
@@
void llvm::removeUnwindEdge(BasicBlock *BB, DomTreeUpdater *DTU) {
TI->replaceAllUsesWith(NewTI);
TI->eraseFromParent();
if (DTU)
- DTU->applyUpdates
Permissive
({{DominatorTree::Delete, BB, UnwindDest}});
+ DTU->applyUpdates({{DominatorTree::Delete, BB, UnwindDest}});
}
/// removeUnreachableBlocks - Remove blocks that are not reachable, even