gallium: minor optimization to spe_load_int()
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 12 Sep 2008 14:22:15 +0000 (08:22 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 12 Sep 2008 14:22:15 +0000 (08:22 -0600)
src/gallium/auxiliary/rtasm/rtasm_ppc_spe.c

index a04cc6c..62e3adb 100644 (file)
@@ -505,7 +505,8 @@ spe_load_int(struct spe_function *p, unsigned rT, int i)
    }
    else {
       spe_ilhu(p, rT, i >> 16);
-      spe_iohl(p, rT, i & 0xffff);
+      if (i & 0xffff)
+         spe_iohl(p, rT, i & 0xffff);
    }
 }