Call Arity: Never eta-expand thunks in recursive groups
Even if the recursion is a nice tail-call only recusion, we'd stil be calling the thunk multiple times and eta-expansion would be wrong. Includes a [Note]. (Also shows the disadvantage of unit tests: They had the same bug.)
Showing
- compiler/simplCore/CallArity.hs 47 additions, 26 deletionscompiler/simplCore/CallArity.hs
- testsuite/tests/callarity/unittest/CallArity1.hs 1 addition, 14 deletionstestsuite/tests/callarity/unittest/CallArity1.hs
- testsuite/tests/callarity/unittest/CallArity1.stderr 3 additions, 13 deletionstestsuite/tests/callarity/unittest/CallArity1.stderr
Loading
Please register or sign in to comment