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
ba53fd7f
Commit
ba53fd7f
authored
Feb 10, 2010
by
Jonas Fietz
Browse files
Fix bug when handling pn_Cmp_Lg with vrp info
[r27101]
parent
46998ae9
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/iropt.c
View file @
ba53fd7f
...
...
@@ -523,7 +523,15 @@ static tarval *computed_value_Proj_Cmp(const ir_node *n) {
pn_Cmp
cmp_result
=
vrp_cmp
(
aa
,
ab
);
if
(
cmp_result
!=
pn_Cmp_False
)
{
return
new_tarval_from_long
(
cmp_result
&
proj_nr
,
mode_b
);
if
(
cmp_result
==
pn_Cmp_Lg
)
{
if
(
proj_nr
==
pn_Cmp_Eq
)
{
return
get_tarval_b_false
();
}
else
if
(
proj_nr
==
pn_Cmp_Lg
)
{
return
get_tarval_b_true
();
}
}
else
{
return
new_tarval_from_long
(
cmp_result
&
proj_nr
,
mode_b
);
}
}
}
/*
...
...
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