Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
69cda9ef
Commit
69cda9ef
authored
Aug 07, 2012
by
Simon Marlow
Browse files
maybeInvertComparison: remove floating-point comparisons
See comments.
parent
babe3c60
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/cmm/CmmMachOp.hs
View file @
69cda9ef
...
...
@@ -274,12 +274,6 @@ maybeInvertComparison op
MO_S_Gt
r
->
Just
(
MO_S_Le
r
)
MO_S_Le
r
->
Just
(
MO_S_Gt
r
)
MO_S_Ge
r
->
Just
(
MO_S_Lt
r
)
MO_F_Eq
r
->
Just
(
MO_F_Ne
r
)
MO_F_Ne
r
->
Just
(
MO_F_Eq
r
)
MO_F_Ge
r
->
Just
(
MO_F_Le
r
)
MO_F_Le
r
->
Just
(
MO_F_Ge
r
)
MO_F_Gt
r
->
Just
(
MO_F_Lt
r
)
MO_F_Lt
r
->
Just
(
MO_F_Gt
r
)
_other
->
Nothing
-- ----------------------------------------------------------------------------
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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