#3744: Comparisons against minBound/maxBound not optimised
--------------------------------------+-------------------------------------
  Reporter:  rl                       |          Owner:                  
      Type:  bug                      |         Status:  closed          
  Priority:  normal                   |      Milestone:  7.2.1           
 Component:  Compiler                 |        Version:  6.13            
Resolution:  fixed                    |       Keywords:                  
  Testcase:                           |      Blockedby:                  
Difficulty:                           |             Os:  Unknown/Multiple
  Blocking:                           |   Architecture:  Unknown/Multiple
   Failure:  Runtime performance bug  |  
--------------------------------------+-------------------------------------

Comment(by michalt):

 Replying to [comment:10 simonpj]:
 > The optimisation seems ok, but does this situation ever arise in
 practice?
 > Who asks `x < minBound`?
 >
 > Simon

 Well, I'm pretty sure I've never wrote something like that. ;)

 On the other hand the ticket has been around for a while with a comment or
 two,
 so I thought that the optimization might be useful for someone. But I
 don't
 really feel strongly about it.

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

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to