[PATCH] D81235: Correctly report modified status for LoopSimplify

serge via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 5 07:11:42 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG2e5940cf2915: Correctly report modified status for LoopSimplify (authored by serge-sans-paille).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81235/new/

https://reviews.llvm.org/D81235

Files:
  llvm/lib/Transforms/Utils/LoopSimplify.cpp


Index: llvm/lib/Transforms/Utils/LoopSimplify.cpp
===================================================================
--- llvm/lib/Transforms/Utils/LoopSimplify.cpp
+++ llvm/lib/Transforms/Utils/LoopSimplify.cpp
@@ -619,6 +619,7 @@
       if (!PreserveLCSSA || LI->replacementPreservesLCSSAForm(PN, V)) {
         PN->replaceAllUsesWith(V);
         PN->eraseFromParent();
+        Changed = true;
       }
     }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81235.268785.patch
Type: text/x-patch
Size: 416 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200605/a4441ddf/attachment.bin>


More information about the llvm-commits mailing list