Skip to content
Browse files

comment

  • Loading branch information...
1 parent cf3fb95 commit 7db26e00a945532e2ab6be50a8ffe43a6a5917a8 @simonmar simonmar committed Aug 3, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 compiler/cmm/CmmOpt.hs
View
5 compiler/cmm/CmmOpt.hs
@@ -605,6 +605,11 @@ cmmMachOpFoldM platform mop [x, (CmmLit (CmmInt n _))]
Just (cmmMachOpFold platform (MO_S_Shr rep) [x3, CmmLit (CmmInt p rep)])
_ -> Nothing
+-- ToDo (#7116): optimise floating-point multiplication, e.g. x*2.0 -> x+x
+-- Unfortunately this needs a unique supply because x might not be a
+-- register. See #2253 (program 6) for an example.
+
+
-- Anything else is just too hard.
cmmMachOpFoldM _ _ _ = Nothing

0 comments on commit 7db26e0

Please sign in to comment.
Something went wrong with that request. Please try again.