Commit 2ae3dcac by Richard Kenner

(maybe_eliminate_biv_1): In (set (cc0) <biv>) case, swap compare

operands when mult_val < 0 in one additional place.

From-SVN: r14087
parent 1f75ca0d
...@@ -6343,9 +6343,10 @@ maybe_eliminate_biv_1 (x, insn, bl, eliminate_p, where) ...@@ -6343,9 +6343,10 @@ maybe_eliminate_biv_1 (x, insn, bl, eliminate_p, where)
emit_insn_before (gen_move_insn (tem, copy_rtx (v->add_val)), emit_insn_before (gen_move_insn (tem, copy_rtx (v->add_val)),
where); where);
if (validate_change (insn, &SET_SRC (PATTERN (insn)), /* Substitute the new register for its invariant value in
gen_rtx (COMPARE, VOIDmode, the compare expression. */
v->new_reg, tem), 0)) XEXP (new, (INTVAL (v->mult_val) < 0) ? 0 : 1) = tem;
if (validate_change (insn, &SET_SRC (PATTERN (insn)), new, 0))
return 1; return 1;
} }
} }
......
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