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

GHC ghc-devs at haskell.org
Mon Jul 27 14:40:53 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 simonpj):

 Try the effect of changing (in `SimplCore`):
 {{{
             ; guts' <- lintAnnots (ppr pass) (doCorePass pass) guts
 }}}
 to
 {{{
             ; guts' <- lintAnnots (ppr pass) (\p -> doCorePass pass p)
 guts
 }}}
 Simon M speculates that this might work around the problem.

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


More information about the ghc-tickets mailing list