#2253: Native code generator could do better
-----------------------------------------+----------------------------------
    Reporter:  dons                      |        Owner:                  
        Type:  run-time performance bug  |       Status:  new             
    Priority:  normal                    |    Milestone:  6.12 branch     
   Component:  Compiler (NCG)            |      Version:  6.8.2           
    Severity:  normal                    |   Resolution:                  
    Keywords:                            |   Difficulty:  Unknown         
    Testcase:                            |           Os:  Unknown/Multiple
Architecture:  Unknown/Multiple          |  
-----------------------------------------+----------------------------------
Comment (by simonmar):

 The main problem here is those extra reg->reg moves between argument
 registers (e.g. %rsi) and temporary registers (e.g. %rax).

 One way to fix it is to make cmmMiniInline a little smarter, by
 substituting for assignments of temporaries from global regs.  The new
 register allocator might also do better.  However, the new backend will
 solve this in a much better way, by having liveness information about
 global registers.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2253#comment:9>
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