Commit a19a30e8 authored by yb9976's avatar yb9976
Browse files

Evaluate node, since bit information can be outdated.

This fixes opt/fehler266.c.
parent e491316d
......@@ -7396,18 +7396,18 @@ restart:;
return n;
}
}
} else {
/* try to evaluate */
ir_tarval *tv = computed_value(n);
if (tarval_is_constant(tv)) {
/* evaluation was successful -- replace the node. */
ir_graph *const irg = get_irn_irg(n);
}
n = new_r_Const(irg, tv);
/* try to evaluate */
ir_tarval *tv = computed_value(n);
if (tarval_is_constant(tv)) {
/* evaluation was successful -- replace the node. */
ir_graph *const irg = get_irn_irg(n);
DBG_OPT_CSTEVAL(old_n, n);
return n;
}
n = new_r_Const(irg, tv);
DBG_OPT_CSTEVAL(old_n, n);
return n;
}
}
}
......
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