From 2f23a46d62c2dd568f163ba69e22f28e1b736f89 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Thu, 28 Jul 1994 17:34:53 -0400 Subject: [PATCH] (compare_spill_regs): Simplify and return zero if registers are the same. From-SVN: r7810 --- gcc/reload1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/reload1.c b/gcc/reload1.c index e46d76421a8..6e3c7e57b7a 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -3668,11 +3668,12 @@ order_regs_for_reload () } /* Used in reload_as_needed to sort the spilled regs. */ + static int compare_spill_regs (r1, r2) short *r1, *r2; { - return *r1 < *r2 ? -1: 1; + return *r1 - *r2; } /* Reload pseudo-registers into hard regs around each insn as needed.