From dbc467e316bdd885e08187ba860c0b60084b1fd6 Mon Sep 17 00:00:00 2001 From: gbeauche <> Date: Sun, 26 Feb 2006 18:58:18 +0000 Subject: [PATCH] prefer lower indexes in register allocation, this avoids REX prefixes on x86_64 when %r8 - %r15 are used (very light speedup expected) --- BasiliskII/src/uae_cpu/compiler/compemu_support.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BasiliskII/src/uae_cpu/compiler/compemu_support.cpp b/BasiliskII/src/uae_cpu/compiler/compemu_support.cpp index fcdbc150..d6edce3e 100644 --- a/BasiliskII/src/uae_cpu/compiler/compemu_support.cpp +++ b/BasiliskII/src/uae_cpu/compiler/compemu_support.cpp @@ -1409,7 +1409,8 @@ static int alloc_reg_hinted(int r, int size, int willclobber, int hint) bestreg=-1; when=2000000000; - for (i=N_REGS;i--;) { + /* XXX use a regalloc_order table? */ + for (i=0;i