[GHC] #7014: RULES for bitwise logic and shift primops

GHC cvs-ghc at haskell.org
Thu Jun 21 01:57:09 CEST 2012


#7014: RULES for bitwise logic and shift primops
---------------------------------+------------------------------------------
    Reporter:  akio              |       Owner:                  
        Type:  feature request   |      Status:  patch           
    Priority:  normal            |   Milestone:                  
   Component:  Compiler          |     Version:  7.4.2           
    Keywords:                    |          Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown    
  Difficulty:  Unknown           |    Testcase:                  
   Blockedby:                    |    Blocking:                  
     Related:                    |  
---------------------------------+------------------------------------------

Comment(by akio):

 I'm sure GHC already does constant-fold (3 .|. 5). I see !AndOp, !OrOp
 etc. mentioned in !PrelRules.lhs.

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



More information about the Glasgow-haskell-bugs mailing list