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
045e85c5
Commit
045e85c5
authored
Nov 11, 2011
by
Matthias Braun
Browse files
iropt: use Confirm info for Cmp-relations
parent
3aa53a8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/iropt.c
View file @
045e85c5
...
...
@@ -587,6 +587,15 @@ ir_relation ir_get_possible_cmp_relations(const ir_node *left,
/* Alloc nodes never return null (but throw an exception) */
if
(
is_Alloc
(
left
)
&&
tarval_is_null
(
tv_r
))
possible
&=
~
ir_relation_equal
;
/* stuff known through confirm nodes */
if
(
is_Confirm
(
left
)
&&
get_Confirm_bound
(
left
)
==
right
)
{
possible
&=
get_Confirm_relation
(
left
);
}
if
(
is_Confirm
(
right
)
&&
get_Confirm_bound
(
right
)
==
left
)
{
ir_relation
relation
=
get_Confirm_relation
(
right
);
relation
=
get_inversed_relation
(
relation
);
possible
&=
relation
;
}
return
possible
;
}
...
...
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