Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
3e1c50a6
Commit
3e1c50a6
authored
Nov 28, 2007
by
Simon Marlow
Browse files
add comment
parent
30665bdd
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/cmm/CmmOpt.hs
View file @
3e1c50a6
...
...
@@ -343,6 +343,8 @@ cmmMachOpFold cmp [CmmMachOp conv [x], CmmLit (CmmInt i _)]
maybe_conversion
(
MO_U_Conv
from
_
)
=
Just
(
from
,
narrowU
)
maybe_conversion
(
MO_S_Conv
from
_
)
|
not
(
isFloatingRep
from
)
=
Just
(
from
,
narrowS
)
-- don't attempt to apply this optimisation when the source
-- is a float; see #1916
maybe_conversion
_
=
Nothing
maybe_comparison
(
MO_U_Gt
_
)
rep
=
Just
(
MO_U_Gt
rep
)
...
...
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