[GHC] #13379: Space leak / quadratic behavior when inlining

GHC ghc-devs at haskell.org
Mon Mar 6 19:13:29 UTC 2017


#13379: Space leak / quadratic behavior when inlining
-------------------------------------+-------------------------------------
        Reporter:  jberryman         |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Compile-time      |  Unknown/Multiple
  performance bug                    |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by dfeuer):

 I'm not too surprised this is a difficult case. `>>` is `infixl`. So we
 start with `(((f bs >> f b) >> f bs) >> f bs) >> f bs` and we end up
 (eventually) re-associating everything the other way. How did an example
 like this arise in practice?

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13379#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list