[GHC] #9136: Constant folding in Core could be better

GHC ghc-devs at haskell.org
Sat May 24 10:06:05 UTC 2014


#9136: Constant folding in Core could be better
--------------------------------------------+------------------------------
        Reporter:  simonpj                  |            Owner:  nomeata
            Type:  bug                      |           Status:  patch
        Priority:  normal                   |        Milestone:
       Component:  Compiler                 |          Version:  7.8.2
      Resolution:                           |         Keywords:
Operating System:  Unknown/Multiple         |     Architecture:
 Type of failure:  Runtime performance bug  |  Unknown/Multiple
       Test Case:                           |       Difficulty:  Unknown
        Blocking:                           |       Blocked By:
                                            |  Related Tickets:
--------------------------------------------+------------------------------
Changes (by nomeata):

 * status:  new => patch


Comment:

 Nofib shows that this optimization yields no measurable gain – most likely
 because later stages (maybe gcc) perform them anyways. So do we still want
 it, for the sake of pleasing Core, and maybe for the benefit of other
 backends like GHCJS?

 If yes, this can go in, so marking this as ready for review.

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


More information about the ghc-tickets mailing list