Commit 2f23a46d by Richard Kenner

(compare_spill_regs): Simplify and return zero if registers are the same.

From-SVN: r7810
parent 007421a3
...@@ -3668,11 +3668,12 @@ order_regs_for_reload () ...@@ -3668,11 +3668,12 @@ order_regs_for_reload ()
} }
/* Used in reload_as_needed to sort the spilled regs. */ /* Used in reload_as_needed to sort the spilled regs. */
static int static int
compare_spill_regs (r1, r2) compare_spill_regs (r1, r2)
short *r1, *r2; short *r1, *r2;
{ {
return *r1 < *r2 ? -1: 1; return *r1 - *r2;
} }
/* Reload pseudo-registers into hard regs around each insn as needed. /* Reload pseudo-registers into hard regs around each insn as needed.
......
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