[GHC] #14929: Program compiled with -O2 exhibits much worse performance

GHC ghc-devs at haskell.org
Mon Jul 9 21:30:09 UTC 2018


#14929: Program compiled with -O2 exhibits much worse performance
-------------------------------------+-------------------------------------
        Reporter:  mpickering        |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  high              |            Milestone:
       Component:  Compiler          |              Version:  8.2.2
      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 George):

 According to
 https://www.reddit.com/r/haskell/comments/84qovv/an_example_of_code_where_ghcs_o2_makes_things/
 it's now down to 60 lines but I don't see any way to get those 60 lines:
 https://www.reddit.com/r/haskell/comments/84qovv/an_example_of_code_where_ghcs_o2_makes_things/dvshdb8

 Also according to that page, compiling with -fno-full-laziness is a
 workaround

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


More information about the ghc-tickets mailing list