[GHC] #3744: Comparisons against minBound/maxBound not optimised

GHC cvs-ghc at haskell.org
Thu Mar 10 06:00:04 CET 2011


#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 simonpj):

 The optimisation seems ok, but does this situation ever arise in practice?
 Who asks `x < minBound`?

 Simon

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



More information about the Glasgow-haskell-bugs mailing list