Commit bf3a40e9 by Dmitry Melnik Committed by Alexander Monakov

sel-sched-ir.c (merge_expr_data): Take maximum spec.

2011-08-11  Dmitry Melnik  <dm@ispras.ru>

	* sel-sched-ir.c (merge_expr_data): Take maximum spec.

From-SVN: r177651
parent f82d1a94
2011-08-11 Dmitry Melnik <dm@ispras.ru>
* sel-sched-ir.c (merge_expr_data): Take maximum spec.
2011-08-11 Richard Sandiford <richard.sandiford@linaro.org> 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
* doc/md.texi (define_bypass): Say that the instruction names can * doc/md.texi (define_bypass): Say that the instruction names can
......
...@@ -1810,9 +1810,9 @@ update_speculative_bits (expr_t to, expr_t from, insn_t split_point) ...@@ -1810,9 +1810,9 @@ update_speculative_bits (expr_t to, expr_t from, insn_t split_point)
void void
merge_expr_data (expr_t to, expr_t from, insn_t split_point) merge_expr_data (expr_t to, expr_t from, insn_t split_point)
{ {
/* For now, we just set the spec of resulting expr to be minimum of the specs /* Choose the maximum of the specs of merged exprs. This is required
of merged exprs. */ for correctness of bookkeeping. */
if (EXPR_SPEC (to) > EXPR_SPEC (from)) if (EXPR_SPEC (to) < EXPR_SPEC (from))
EXPR_SPEC (to) = EXPR_SPEC (from); EXPR_SPEC (to) = EXPR_SPEC (from);
if (split_point) if (split_point)
......
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