Check if both branches of an Cmm if have the same target.
This for some reason or the other and makes it into the final binary. I've added the check to ContFlowOpt as that seems like a logical place for this. In a regular nofib run there were 30 occurences of this pattern. Test Plan: ci Reviewers: bgamari, simonmar, dfeuer, jrtc27, tdammers Reviewed By: bgamari, simonmar Subscribers: tdammers, dfeuer, rwbarton, thomie, carter GHC Trac Issues: #15188 Differential Revision: https://phabricator.haskell.org/D4740
Showing
- compiler/cmm/CmmContFlowOpt.hs 9 additions, 4 deletionscompiler/cmm/CmmContFlowOpt.hs
- testsuite/tests/cmm/opt/Makefile 6 additions, 0 deletionstestsuite/tests/cmm/opt/Makefile
- testsuite/tests/cmm/opt/T15188.cmm 6 additions, 0 deletionstestsuite/tests/cmm/opt/T15188.cmm
- testsuite/tests/cmm/opt/T15188.stdout 1 addition, 0 deletionstestsuite/tests/cmm/opt/T15188.stdout
- testsuite/tests/cmm/opt/all.T 3 additions, 0 deletionstestsuite/tests/cmm/opt/all.T
testsuite/tests/cmm/opt/Makefile
0 → 100644
testsuite/tests/cmm/opt/T15188.cmm
0 → 100644
testsuite/tests/cmm/opt/T15188.stdout
0 → 100644
testsuite/tests/cmm/opt/all.T
0 → 100644
Please register or sign in to comment