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:
be0a31d
)
[SimplifyCFG] changeToCall(): switch to non-permissive DomTree updates
author
Roman Lebedev
<lebedev.ri@gmail.com>
Thu, 7 Jan 2021 21:58:49 +0000
(
00:58
+0300)
committer
Roman Lebedev
<lebedev.ri@gmail.com>
Thu, 7 Jan 2021 23:15:27 +0000
(
02:15
+0300)
No actual changes needed, normal and unwind destinations of an invoke
can never be identical.
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
5b9d5d3
..
9f8cec9
100644
(file)
--- a/
llvm/lib/Transforms/Utils/Local.cpp
+++ b/
llvm/lib/Transforms/Utils/Local.cpp
@@
-2110,7
+2110,7
@@
void llvm::changeToCall(InvokeInst *II, DomTreeUpdater *DTU) {
UnwindDestBB->removePredecessor(BB);
II->eraseFromParent();
if (DTU)
- DTU->applyUpdates
Permissive
({{DominatorTree::Delete, BB, UnwindDestBB}});
+ DTU->applyUpdates({{DominatorTree::Delete, BB, UnwindDestBB}});
}
BasicBlock *llvm::changeToInvokeAndSplitBasicBlock(CallInst *CI,