[GHC] #13339: Arbitrarily large expressions built out of cheap primops are not floated out

GHC ghc-devs at haskell.org
Mon Feb 27 08:54:44 UTC 2017


#13339: Arbitrarily large expressions built out of cheap primops are not floated
out
-------------------------------------+-------------------------------------
        Reporter:  rwbarton          |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Runtime           |  Unknown/Multiple
  performance bug                    |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 Yes, taking the size into account would be good.  Floating this this out
 requires boxing it, and doing an eval/unbox inside the loop.  When is that
 cheaper than a dozen in-register additions?  I'm not sure.

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


More information about the ghc-tickets mailing list