[GHC] #14637: Simplifier Ticks Exhausted when compiling with profiling

GHC ghc-devs at haskell.org
Wed Jan 24 22:37:52 UTC 2018


#14637: Simplifier Ticks Exhausted when compiling with profiling
-------------------------------------+-------------------------------------
        Reporter:  cfhammill         |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.2.2
      Resolution:                    |             Keywords:
Operating System:  Linux             |         Architecture:  x86_64
 Type of failure:  Compile-time      |  (amd64)
  crash or panic                     |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by niteria):

 It's enough to put `-fprof-auto-top` just on `Lens.hs`.

 Removing `{-# INLINE lens #-}` fixes exponential behavior.

 Interestingly I wasn't able to put enough `{-# SCC #-}` annotations to get
 the same effect as `-fprof-auto-top`. No matter how I try I can't put them
 on a class method, but perhaps I'm doing something wrong.

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


More information about the ghc-tickets mailing list