[PATCH] D81228: Correctly report modified status for SCCP
serge via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 5 07:13:54 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG977d27d881fb: [SCCP] Report changes after removing stores to constant global (authored by serge-sans-paille).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81228/new/
https://reviews.llvm.org/D81228
Files:
llvm/lib/Transforms/Scalar/SCCP.cpp
Index: llvm/lib/Transforms/Scalar/SCCP.cpp
===================================================================
--- llvm/lib/Transforms/Scalar/SCCP.cpp
+++ llvm/lib/Transforms/Scalar/SCCP.cpp
@@ -2031,6 +2031,7 @@
while (!GV->use_empty()) {
StoreInst *SI = cast<StoreInst>(GV->user_back());
SI->eraseFromParent();
+ MadeChanges = true;
}
M.getGlobalList().erase(GV);
++IPNumGlobalConst;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81228.268793.patch
Type: text/x-patch
Size: 425 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200605/52e158f4/attachment.bin>
More information about the llvm-commits
mailing list