Simon Peyton Jones pushed to branch wip/T26831 at Glasgow Haskell Compiler / GHC

Commits:

1 changed file:

Changes:

  • compiler/GHC/Core/Opt/Arity.hs
    ... ... @@ -2552,9 +2552,6 @@ This reduces clutter, sometimes a lot. See Note [Do not eta-expand PAPs]
    2552 2552
     in GHC.Core.Opt.Simplify.Utils, where we are careful not to eta-expand
    
    2553 2553
     a PAP.  If eta-expanding is bad, then eta-reducing is good!
    
    2554 2554
     
    
    2555
    -Also the code generator likes eta-reduced PAPs; see GHC.CoreToStg.Prep
    
    2556
    -Note [No eta reduction needed in rhsToBody].
    
    2557
    -
    
    2558 2555
     But note that we don't want to eta-reduce
    
    2559 2556
          \x y.  f <expensive> x y
    
    2560 2557
     to