Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
7db26e00
Commit
7db26e00
authored
Aug 03, 2012
by
Simon Marlow
Browse files
comment
parent
cf3fb956
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/cmm/CmmOpt.hs
View file @
7db26e00
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment