Permalink
Browse files

MO_F_Mul and MO_F_Add are commutative

  • Loading branch information...
1 parent 82fa790 commit cf3fb956e9e370a8daa5c72fd0695e3c030d834d @simonmar simonmar committed Aug 3, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 compiler/cmm/CmmMachOp.hs
@@ -198,6 +198,8 @@ isCommutableMachOp mop =
MO_And _ -> True
MO_Or _ -> True
MO_Xor _ -> True
+ MO_F_Add _ -> True
+ MO_F_Mul _ -> True
_other -> False
-- ----------------------------------------------------------------------------

0 comments on commit cf3fb95

Please sign in to comment.