]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add a comment about setting aside a register for VG_(dispatch_ctr)
authorFlorian Krohm <florian@eich-krohm.de>
Wed, 4 Jan 2012 01:34:53 +0000 (01:34 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Wed, 4 Jan 2012 01:34:53 +0000 (01:34 +0000)
on s390.

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

VEX/priv/host_s390_defs.c

index ad589e785a1ef68c3461b1806be7f3739516f1fd..f086e55d7572dae171a6a18cb3acb47b3817eac1 100644 (file)
@@ -144,7 +144,12 @@ s390_hreg_get_allocable(Int *nregs, HReg **arr)
       Otherwise, they are available to the allocator */
    (*arr)[i++] = mkHReg(10, HRcInt64, False);
    (*arr)[i++] = mkHReg(11, HRcInt64, False);
-   /* GPR12 is not available because it caches VG_(dispatch_ctr) */
+   /* GPR12 is not available because it caches VG_(dispatch_ctr).
+      Setting aside a register for the counter gives slightly better
+      performance - most of the time. From the 10 tests in "make perf"
+      8 run faster with a max observed speedup of 2.6% for bz2. ffbench
+      is the counter example. It runs 1.3% faster without the dedicated
+      register. */
    /* GPR13 is not available because it is used as guest state pointer */
    /* GPR14 is not available because it is used as link register */
    /* GPR15 is not available because it is used as stack pointer */