mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-08-16 02:27:31 +00:00
prefer lower indexes in register allocation, this avoids REX prefixes on
x86_64 when %r8 - %r15 are used (very light speedup expected)
This commit is contained in:
@@ -1409,7 +1409,8 @@ static int alloc_reg_hinted(int r, int size, int willclobber, int hint)
|
|||||||
bestreg=-1;
|
bestreg=-1;
|
||||||
when=2000000000;
|
when=2000000000;
|
||||||
|
|
||||||
for (i=N_REGS;i--;) {
|
/* XXX use a regalloc_order table? */
|
||||||
|
for (i=0;i<N_REGS;i++) {
|
||||||
badness=live.nat[i].touched;
|
badness=live.nat[i].touched;
|
||||||
if (live.nat[i].nholds==0)
|
if (live.nat[i].nholds==0)
|
||||||
badness=0;
|
badness=0;
|
||||||
|
Reference in New Issue
Block a user