Skip to contentSkip to conversation

[5238] target-alpha: small optimizations

Qemu-devel Aurelien Jarno 1 participant 1 message Sep 16, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 5238

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5238
Author:   aurel32
Date:     2008-09-16 22:44:25 +0000 (Tue, 16 Sep 2008)

Log Message:
-----------
target-alpha: small optimizations

Modified Paths:
--------------
trunk/target-alpha/translate.c

Modified: trunk/target-alpha/translate.c
===================================================================

target-alpha/translate.c +2 -2
@@ -516,7 +516,7 @@
         goto invalid_opc;
     case 0x08:
         /* LDA */
-        if (ra != 31) {
+        if (likely(ra != 31)) {
             if (rb != 31)
                 tcg_gen_addi_i64(cpu_ir[ra], cpu_ir[rb], disp16);
             else
@@ -525,7 +525,7 @@
         break;
     case 0x09:
         /* LDAH */
-        if (ra != 31) {
+        if (likely(ra != 31)) {
             if (rb != 31)
                 tcg_gen_addi_i64(cpu_ir[ra], cpu_ir[rb], disp16 << 16);
             else