Commit 7db26e00 authored by Simon Marlow's avatar Simon Marlow


parent cf3fb956
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment