#2416: Optimization defeated by merging module into main
-------------------------------+--------------------------------------------
    Reporter:  sedillard       |        Owner:       
        Type:  bug             |       Status:  new  
    Priority:  normal          |    Milestone:       
   Component:  Compiler        |      Version:  6.8.3
    Severity:  normal          |   Resolution:       
    Keywords:                  |     Testcase:       
Architecture:  x86_64 (amd64)  |           Os:  Linux
-------------------------------+--------------------------------------------
Comment (by sedillard):

 The main reason Main.hs is so much faster is this:

 {{{
 ghc --make Main.hs -O2 -fexcess-precision -ddump-simpl | grep D#
 [1 of 2] Compiling TheModule        ( TheModule.hs, TheModule.o )
 [2 of 2] Compiling Main             ( Main.hs, Main.o )
 Linking Main ...
 (no hits)
 }}}

 There are no calls D# in the compiled Main.hs, whereas Both.hs ends up
 with many D# constructors in the main loop.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2416#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to