[PATCH] D82753: Correctly report Changed status in FoldBranchToCommonDest

serge via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 29 09:43:09 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGb4130e6e9964: Correctly report Changed status in FoldBranchToCommonDest (authored by serge-sans-paille).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D82753

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


Index: llvm/lib/Transforms/Utils/SimplifyCFG.cpp
===================================================================
--- llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -2645,7 +2645,7 @@
             }
             // Quit if we can't remove this instruction.
             if (!tryCSEWithPredecessor(Curr, PB))
-              return false;
+              return Changed;
             Changed = true;
           }
         }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82753.274158.patch
Type: text/x-patch
Size: 468 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200629/1a22c39b/attachment-0001.bin>


More information about the llvm-commits mailing list