[PATCH] D81228: Correctly report modified status for SCCP

serge via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 5 00:30:41 PDT 2020


serge-sans-paille created this revision.
serge-sans-paille added reviewers: fhahn, nikic, foad, jdoerfert.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

Related to https://reviews.llvm.org/D80916


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.268679.patch
Type: text/x-patch
Size: 425 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200605/9c830a2b/attachment.bin>


More information about the llvm-commits mailing list