[project @ 2004-08-26 11:06:04 by simonmar]
authorsimonmar <unknown>
Thu, 26 Aug 2004 11:06:04 +0000 (11:06 +0000)
committersimonmar <unknown>
Thu, 26 Aug 2004 11:06:04 +0000 (11:06 +0000)
Urk, since when has subtraction been associative.  /me dons the pointy
hat.

ghc/compiler/cmm/MachOp.hs

index 2d933e0..dcf9bb6 100644 (file)
@@ -506,7 +506,6 @@ isAssociativeMachOp :: MachOp -> Bool
 isAssociativeMachOp mop = 
   case mop of
        MO_Add r        -> not (isFloatingRep r)
-       MO_Sub r        -> not (isFloatingRep r)
        MO_Mul r        -> not (isFloatingRep r)
        MO_And _        -> True
        MO_Or _         -> True