Commit f0ad1ee3 authored by yb9976's avatar yb9976
Browse files

Recompute possible relations.

This fixes opt/fehler299.c.
parent 14f1541a
...@@ -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);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment