Combine the CoreAlts with the most common RHS
Unless there already is a DEFAULT alternative, look for the most common RHS and create a new DEFAULT alt. Previously, only the very first RHS was considered. Test Plan: make test TEST="T7360 T14684" Reviewers: bgamari Subscribers: AndreasK, mpickering, rwbarton, thomie, carter GHC Trac Issues: #14684 Differential Revision: https://phabricator.haskell.org/D4419
Showing
- compiler/coreSyn/CoreUtils.hs 57 additions, 30 deletionscompiler/coreSyn/CoreUtils.hs
- testsuite/tests/simplCore/should_compile/Makefile 3 additions, 0 deletionstestsuite/tests/simplCore/should_compile/Makefile
- testsuite/tests/simplCore/should_compile/T14684.hs 18 additions, 0 deletionstestsuite/tests/simplCore/should_compile/T14684.hs
- testsuite/tests/simplCore/should_compile/T14684.stdout 6 additions, 0 deletionstestsuite/tests/simplCore/should_compile/T14684.stdout
- testsuite/tests/simplCore/should_compile/all.T 4 additions, 0 deletionstestsuite/tests/simplCore/should_compile/all.T
Loading
Please register or sign in to comment