Inline the datacon wrapper more aggressively
so that the CPR analysis find the real constructor and can return a nested CPR result. An alternative would be to look through the unfolding and analize that (but that would only be a good idea if the wrapper is going to be inlined afterwards), or special-case wrappers in the demand analyzer. Both not very nice. According to nofib: The impact of this is (on code size and allocations) is ... nil.
Showing
- compiler/basicTypes/MkId.lhs 1 addition, 1 deletioncompiler/basicTypes/MkId.lhs
- compiler/coreSyn/CoreUnfold.lhs 31 additions, 0 deletionscompiler/coreSyn/CoreUnfold.lhs
- testsuite/tests/deSugar/should_compile/T2431.stderr 1 addition, 1 deletiontestsuite/tests/deSugar/should_compile/T2431.stderr
- testsuite/tests/simplCore/should_compile/T7360.stderr 1 addition, 1 deletiontestsuite/tests/simplCore/should_compile/T7360.stderr
Please register or sign in to comment