From ed330ac726d62875a6717354364a5cf295573b50 Mon Sep 17 00:00:00 2001 From: Florian Krohm Date: Sat, 17 Sep 2011 22:18:01 +0000 Subject: [PATCH] Tweak s390x dispatcher. Using CG elminates two load insns. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12037 --- coregrind/m_dispatch/dispatch-s390x-linux.S | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/coregrind/m_dispatch/dispatch-s390x-linux.S b/coregrind/m_dispatch/dispatch-s390x-linux.S index b04d4fe6b1..a3fbab440c 100644 --- a/coregrind/m_dispatch/dispatch-s390x-linux.S +++ b/coregrind/m_dispatch/dispatch-s390x-linux.S @@ -173,10 +173,8 @@ run_innerloop__dispatch_unprofiled: ahi S390_REGNO_DISPATCH_CTR,-1 jz counter_is_zero - - lg %r10, 0(%r8,%r7) /* .guest */ lg %r11, 8(%r8,%r7) /* .host */ - cgr %r2, %r10 + cg %r2, 0(%r8,%r7) /* next guest address == .guest ? */ jne fast_lookup_failed /* Found a match. Call .host. @@ -230,9 +228,8 @@ run_innerloop__dispatch_profiled: ahi S390_REGNO_DISPATCH_CTR,-1 jz counter_is_zero - lg %r10, 0(%r8,%r7) /* .guest */ lg %r11, 8(%r8,%r7) /* .host */ - cgr %r2, %r10 + cg %r2, 0(%r8,%r7) /* next guest address == .guest ? */ jne fast_lookup_failed /* sizeof(FastCacheEntry) == 16, sizeof(*UInt)==8 */ -- 2.47.2