Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
eccc593f
Commit
eccc593f
authored
May 26, 2014
by
Matthias Braun
Browse files
iropt: Cmp(Nan, x) localopt rules
parent
f1f48976
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/iropt.c
View file @
eccc593f
...
...
@@ -671,6 +671,11 @@ ir_relation ir_get_possible_cmp_relations(const ir_node *left,
return
possible
;
}
/* NaN never compares successfully to anything */
if
(
tarval_is_nan
(
tv_l
)
||
tarval_is_nan
(
tv_r
))
{
return
ir_relation_unordered
;
}
/* a == a is never less or greater (but might be equal or unordered) */
if
(
left
==
right
)
possible
&=
~
ir_relation_less_greater
;
...
...
Write
Preview
Markdown
is supported
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