2011-08-11 Dmitry Melnik <dm@ispras.ru>
* sel-sched-ir.c (merge_expr_data): Take maximum spec.
From-SVN: r177651
+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>
* doc/md.texi (define_bypass): Say that the instruction names can
void
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
- of merged exprs. */
- if (EXPR_SPEC (to) > EXPR_SPEC (from))
+ /* Choose the maximum of the specs of merged exprs. This is required
+ for correctness of bookkeeping. */
+ if (EXPR_SPEC (to) < EXPR_SPEC (from))
EXPR_SPEC (to) = EXPR_SPEC (from);
if (split_point)