[GHC] #10007: Fix misattribution of Cost Centre profiles to lintAnnots

GHC ghc-devs at haskell.org
Mon Jul 27 14:59:56 UTC 2015


#10007: Fix misattribution of Cost Centre profiles to lintAnnots
-------------------------------------+-------------------------------------
        Reporter:  thoughtpolice     |                   Owner:  scpmw
            Type:  bug               |                  Status:  new
        Priority:  high              |               Milestone:  7.10.3
       Component:  Profiling         |                 Version:  7.10.1-rc1
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
 Type of failure:  Incorrect result  |  Unknown/Multiple
  at runtime                         |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:  #9961             |  Differential Revisions:  Phab:D616
                                     |  Phab:D636
-------------------------------------+-------------------------------------

Comment (by scpmw):

 Unfortunately, I am pretty sure I tested that - and it doesn't work. The
 easiest workaround is updating all `doCorePass` equations as follows:

 {{{
 doCorePass pass@(CoreDoSimplify {}) guts = {-# SCC "Simplify" #-}
                                            simplifyPgm pass guts
 }}}

 Which avoids this problem by not putting the SCC on a function-type value.

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


More information about the ghc-tickets mailing list