From: Julian Seward Date: Sun, 19 Nov 2006 02:05:47 +0000 (+0000) Subject: On amd64, allow the register allocator to use %r10 which it previously X-Git-Tag: svn/VALGRIND_3_3_1^2~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50a86978591be71b18e6552ac057bfc9387701ea;p=thirdparty%2Fvalgrind.git On amd64, allow the register allocator to use %r10 which it previously did not. This gives a 0%-3% speedup, mostly closer to the 0% end. git-svn-id: svn://svn.valgrind.org/vex/trunk@1680 --- diff --git a/VEX/priv/host-amd64/hdefs.c b/VEX/priv/host-amd64/hdefs.c index a703180648..602b197f3f 100644 --- a/VEX/priv/host-amd64/hdefs.c +++ b/VEX/priv/host-amd64/hdefs.c @@ -168,7 +168,7 @@ void getAllocableRegs_AMD64 ( Int* nregs, HReg** arr ) (*arr)[ 5] = hregAMD64_XMM9(); #endif #if 1 - *nregs = 19; + *nregs = 20; *arr = LibVEX_Alloc(*nregs * sizeof(HReg)); (*arr)[ 0] = hregAMD64_RSI(); (*arr)[ 1] = hregAMD64_RDI(); @@ -190,7 +190,7 @@ void getAllocableRegs_AMD64 ( Int* nregs, HReg** arr ) (*arr)[16] = hregAMD64_XMM10(); (*arr)[17] = hregAMD64_XMM11(); (*arr)[18] = hregAMD64_XMM12(); - + (*arr)[19] = hregAMD64_R10(); #endif }