Disable unfolding sharing for interface files with core definitions
Ticket #22807 pointed out that the RHS sharing was not compatible with -fignore-interface-pragmas because the flag would remove unfoldings from identifiers before the `extra-decls` field was populated. For the 9.6 timescale the only solution is to disable this sharing, which will make interface files bigger but this is acceptable for the first release of `-fwrite-if-simplified-core`. For 9.8 it would be good to fix this by implementing #20056 due to the large number of other bugs that would fix. I also improved the error message in tc_iface_binding to avoid the "no match in record selector" error but it should never happen now as the entire sharing logic is disabled. Also added the currently broken test for #22807 which could be fixed by !6080 Fixes #22807
parent
545bf8cf
Branches wip/simon-perf
No related tags found
Pipeline #62552 passed
Stage: tool-lint
Stage: quick-build
Stage: full-build
Stage: packaging
Stage: testing
Showing
- compiler/GHC/CoreToIface.hs 10 additions, 3 deletionscompiler/GHC/CoreToIface.hs
- compiler/GHC/IfaceToCore.hs 7 additions, 1 deletioncompiler/GHC/IfaceToCore.hs
- testsuite/tests/driver/fat-iface/Makefile 7 additions, 0 deletionstestsuite/tests/driver/fat-iface/Makefile
- testsuite/tests/driver/fat-iface/T22807.stdout 2 additions, 0 deletionstestsuite/tests/driver/fat-iface/T22807.stdout
- testsuite/tests/driver/fat-iface/T22807A.hs 6 additions, 0 deletionstestsuite/tests/driver/fat-iface/T22807A.hs
- testsuite/tests/driver/fat-iface/T22807B.hs 5 additions, 0 deletionstestsuite/tests/driver/fat-iface/T22807B.hs
- testsuite/tests/driver/fat-iface/T22807_ghci.hs 8 additions, 0 deletionstestsuite/tests/driver/fat-iface/T22807_ghci.hs
- testsuite/tests/driver/fat-iface/T22807_ghci.script 6 additions, 0 deletionstestsuite/tests/driver/fat-iface/T22807_ghci.script
- testsuite/tests/driver/fat-iface/T22807_ghci.stdout 1 addition, 0 deletionstestsuite/tests/driver/fat-iface/T22807_ghci.stdout
- testsuite/tests/driver/fat-iface/all.T 4 additions, 0 deletionstestsuite/tests/driver/fat-iface/all.T
testsuite/tests/driver/fat-iface/T22807A.hs
0 → 100644
testsuite/tests/driver/fat-iface/T22807B.hs
0 → 100644
Please register or sign in to comment