#1246: <= operators get compiled worse than ==
----------------------+-----------------------------------------------------
 Reporter:  duncan    |          Owner:         
     Type:  bug       |         Status:  new    
 Priority:  normal    |      Milestone:         
Component:  Compiler  |        Version:  6.6    
 Severity:  normal    |     Resolution:         
 Keywords:            |     Difficulty:  Unknown
 Testcase:            |   Architecture:  x86    
       Os:  Unknown   |  
----------------------+-----------------------------------------------------
Comment (by duncan):

 I'm not suggesting any unrolling. I just think the code gen can do better
 with <=# cases. It may well be that at the very low level there is a one
 or two instruction advantage to comparisons to zero, but I don't think
 that's the issue here.

 I'm convinced that the stg -> cmm -> asm/c translation  is not doing as
 good a job as it could do for these cases. I tried breifly to understand
 the cmm code from my examples above but didn't get far.

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