(compare_spill_regs): Simplify and return zero if registers are the same.
From-SVN: r7810
This commit is contained in:
parent
007421a37b
commit
2f23a46d62
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user