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:
8405f6b
)
[SCCP] Report changes after removing stores to constant global
author
serge-sans-paille
<sguelton@redhat.com>
Thu, 4 Jun 2020 21:33:03 +0000
(23:33 +0200)
committer
serge-sans-paille
<sguelton@redhat.com>
Fri, 5 Jun 2020 14:09:07 +0000
(16:09 +0200)
Differential Revision: https://reviews.llvm.org/D81228
llvm/lib/Transforms/Scalar/SCCP.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/Scalar/SCCP.cpp
b/llvm/lib/Transforms/Scalar/SCCP.cpp
index
6eb83af
..
cfe5aea
100644
(file)
--- a/
llvm/lib/Transforms/Scalar/SCCP.cpp
+++ b/
llvm/lib/Transforms/Scalar/SCCP.cpp
@@
-2031,6
+2031,7
@@
bool llvm::runIPSCCP(
while (!GV->use_empty()) {
StoreInst *SI = cast<StoreInst>(GV->user_back());
SI->eraseFromParent();
+ MadeChanges = true;
}
M.getGlobalList().erase(GV);
++IPNumGlobalConst;