[GHC] #5576: Fix to #5549 breaks integerConstantFolding

GHC cvs-ghc at haskell.org
Sun Oct 23 18:31:01 CEST 2011


#5576: Fix to #5549 breaks integerConstantFolding
----------------------------------+-----------------------------------------
    Reporter:  daniel.is.fischer  |       Owner:              
        Type:  bug                |      Status:  new         
    Priority:  normal             |   Component:  Compiler    
     Version:  7.3                |    Keywords:              
    Testcase:                     |   Blockedby:              
          Os:  Linux              |    Blocking:              
Architecture:  Unknown/Multiple   |     Failure:  None/Unknown
----------------------------------+-----------------------------------------

Comment(by daniel.is.fischer):

 Nope. `divMod` and `quotRem` get constant-folded (and T5549 breaks) iff
 `litSize (LitInteger{}) = 0`.[[BR]]
 We need something better to get both goodies.

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



More information about the Glasgow-haskell-bugs mailing list