[GHC] #5363: optimized profiled version of a program incorectly compiles $!

GHC cvs-ghc at haskell.org
Tue Aug 2 10:16:44 CEST 2011


#5363: optimized profiled version of a program incorectly compiles $!
-------------------------------------------------+--------------------------
    Reporter:  phercek                           |        Owner:                             
        Type:  bug                               |       Status:  new                        
    Priority:  normal                            |    Milestone:                             
   Component:  Compiler                          |      Version:  7.0.3                      
    Keywords:  optimization profiling stricness  |     Testcase:                             
   Blockedby:                                    |   Difficulty:                             
          Os:  Linux                             |     Blocking:                             
Architecture:  x86_64 (amd64)                    |      Failure:  Incorrect result at runtime
-------------------------------------------------+--------------------------

Comment(by simonpj):

 Profiling disables all sorts of optimisations.  Think of it as compiling
 without -O.  So I'm absolutely unsurprised by unnecessary boxing and
 unboxing.

 However I can see that changing the asymptotic stack behaviour is
 undesirable, esp since you are using an explicit strict-apply.  How much
 does this matter to you?

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



More information about the Glasgow-haskell-bugs mailing list