Related to https://reviews.llvm.org/D80916
This required to modify the helper function FoldBranchToCommonDest, but it also has the surprising side effect to make the simplification more efficient in at least one tested case, thus the test update.
Paths
| Differential D81237
Correctly report modified status for SimplifyCFG and LoopSimplify ClosedPublic Authored by serge-sans-paille on Jun 5 2020, 12:52 AM.
Details Summary Related to https://reviews.llvm.org/D80916 This required to modify the helper function FoldBranchToCommonDest, but it also has the surprising side effect to make the simplification more efficient in at least one tested case, thus the test update.
Diff Detail
Event Timeline
Comment Actions Rework FoldBranchToCommonDest to correctly report status, so that we don't make its signature too complex.
Comment Actions LGTM except for the minor comments inline.
This revision is now accepted and ready to land.Jun 10 2020, 1:51 AM Closed by commit rG9daccb7a477b: Correctly update Changed status for SimplifyCFG (authored by serge-sans-paille). · Explain WhyJun 10 2020, 8:13 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 269857 llvm/lib/Transforms/Utils/SimplifyCFG.cpp
llvm/test/Transforms/SimplifyCFG/fold-branch-debuginvariant.ll
|
This seems like an odd place to put this line. Maybe move it up, right next to the "FOLDING BRANCH TO COMMON DEST" message? That's when we know we're going to change something.