]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Reduce to 5 the number of available Q (128-bit) registers available
authorJulian Seward <jseward@acm.org>
Tue, 31 Aug 2010 09:32:40 +0000 (09:32 +0000)
committerJulian Seward <jseward@acm.org>
Tue, 31 Aug 2010 09:32:40 +0000 (09:32 +0000)
to the allocator, in an attempt to make register allocation a bit
faster on ARM.

git-svn-id: svn://svn.valgrind.org/vex/trunk@2024

VEX/priv/host_arm_defs.c

index 832eb6ca5821f2d9fe0df4b7069baba2a42fe17c..aea8f3468ebcbdfa1f6d08e7dc94a921d1ae629c 100644 (file)
@@ -119,7 +119,7 @@ HReg hregARM_Q15 ( void ) { return mkHReg(15, HRcVec128, False); }
 void getAllocableRegs_ARM ( Int* nregs, HReg** arr )
 {
    Int i = 0;
-   *nregs = 29;
+   *nregs = 26;
    *arr = LibVEX_Alloc(*nregs * sizeof(HReg));
    // callee saves ones are listed first, since we prefer them
    // if they're available
@@ -154,9 +154,10 @@ void getAllocableRegs_ARM ( Int* nregs, HReg** arr )
    (*arr)[i++] = hregARM_Q10();
    (*arr)[i++] = hregARM_Q11();
    (*arr)[i++] = hregARM_Q12();
-   (*arr)[i++] = hregARM_Q13();
-   (*arr)[i++] = hregARM_Q14();
-   (*arr)[i++] = hregARM_Q15();
+
+   //(*arr)[i++] = hregARM_Q13();
+   //(*arr)[i++] = hregARM_Q14();
+   //(*arr)[i++] = hregARM_Q15();
 
    // unavail: r8 as GSP
    // r12 'cos we're not sure what it's for