[GHC] #6131: -fprof-auto adds cost centers to INLINE functions

GHC cvs-ghc at haskell.org
Fri Jun 15 10:11:07 CEST 2012


#6131: -fprof-auto adds cost centers to INLINE functions
-------------------------------+--------------------------------------------
    Reporter:  akio            |       Owner:                             
        Type:  bug             |      Status:  infoneeded                 
    Priority:  normal          |   Milestone:                             
   Component:  Compiler        |     Version:  7.4.2-rc1                  
    Keywords:                  |          Os:  Linux                      
Architecture:  x86_64 (amd64)  |     Failure:  Incorrect result at runtime
  Difficulty:  Unknown         |    Testcase:                             
   Blockedby:                  |    Blocking:                             
     Related:                  |  
-------------------------------+--------------------------------------------

Comment(by akio):

 I used to use an INLINE pragma as a handy way to prevent a cost center
 from being added to a function. Most of the time I wanted this feature
 because adding a cost center to a frequently-called small function tends
 to distort profiling results by adding a significant cost to that
 function, including costs of lost optimizations.

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



More information about the Glasgow-haskell-bugs mailing list