summaryrefslogtreecommitdiff
path: root/docs/hep
diff options
context:
space:
mode:
authorSebastian Graf <sebastian.graf@kit.edu>2023-03-07 13:23:19 +0100
committerSebastian Graf <sebastian.graf@kit.edu>2023-05-17 17:17:25 +0200
commit5c8858846fb0d67a550f5943bf8bfced19b5f46b (patch)
tree5a1022059f8d7b96e55e1c3aa4b15e5308312acd /docs/hep
parentfaafe2a0ec4dcca1643c5bf3d52718eefc93d039 (diff)
downloadhaskell-wip/T23083.tar.gz
CorePrep: Eta expand arguments (#23083)wip/T23083
Previously, we'd only eta expand let bindings and lambdas, now we'll also eta expand arguments such as in T23083: ```hs g f h = f (h `seq` (h $)) ``` Unless `-fpedantic-bottoms` is set, we'll now transform to ```hs g f h = f (\eta -> h eta) ``` in CorePrep. See the new `Note [Eta expansion of arguments in CorePrep]` for the details. We only do this optimisation with -O2 because we saw 2-3% ghc/alloc regressions in T4801 and T5321FD. Fixes #23083.
Diffstat (limited to 'docs/hep')
0 files changed, 0 insertions, 0 deletions