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
f0ad1ee3
Commit
f0ad1ee3
authored
Jul 14, 2015
by
yb9976
Browse files
Recompute possible relations.
This fixes opt/fehler299.c.
parent
14f1541a
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/iropt.c
View file @
f0ad1ee3
...
@@ -5172,10 +5172,11 @@ cmp_x_eq_0:
...
@@ -5172,10 +5172,11 @@ cmp_x_eq_0:
ir_tarval
*
new_tv
=
tarval_convert_to
(
tv
,
mode_left
);
ir_tarval
*
new_tv
=
tarval_convert_to
(
tv
,
mode_left
);
tarval_set_wrap_on_overflow
(
old_wrap_on_overflow
);
tarval_set_wrap_on_overflow
(
old_wrap_on_overflow
);
if
(
tarval_is_constant
(
new_tv
))
{
if
(
tarval_is_constant
(
new_tv
))
{
left
=
op_left
;
left
=
op_left
;
right
=
new_r_Const
(
irg
,
new_tv
);
right
=
new_r_Const
(
irg
,
new_tv
);
mode
=
get_irn_mode
(
left
);
mode
=
get_irn_mode
(
left
);
changed
=
true
;
possible
=
ir_get_possible_cmp_relations
(
left
,
right
);
changed
=
true
;
DBG_OPT_ALGSIM0
(
n
,
n
,
FS_OPT_CMP_CONV
);
DBG_OPT_ALGSIM0
(
n
,
n
,
FS_OPT_CMP_CONV
);
}
}
}
}
...
...
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