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:
f4ea219
)
[SimplifyCFG] Don't actually take DomTreeUpdater unless we intend to maintain DomTree...
author
Roman Lebedev
<lebedev.ri@gmail.com>
Sat, 2 Jan 2021 11:40:55 +0000
(14:40 +0300)
committer
Roman Lebedev
<lebedev.ri@gmail.com>
Sat, 2 Jan 2021 11:40:55 +0000
(14:40 +0300)
This guards against unintentional mistakes
like the one i just fixed in previous commit.
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index
fa12d8b
..
e1f7ef6
100644
(file)
--- a/
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@
-6700,7
+6700,7
@@
bool SimplifyCFGOpt::run(BasicBlock *BB) {
bool llvm::simplifyCFG(BasicBlock *BB, const TargetTransformInfo &TTI,
DomTreeUpdater *DTU, const SimplifyCFGOptions &Options,
SmallPtrSetImpl<BasicBlock *> *LoopHeaders) {
- return SimplifyCFGOpt(TTI,
DTU, BB->getModule()->getDataLayout(), LoopHeaders
,
- Options)
+ return SimplifyCFGOpt(TTI,
RequireAndPreserveDomTree ? DTU : nullptr
,
+
BB->getModule()->getDataLayout(), LoopHeaders,
Options)
.run(BB);
}