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 a04cc6c4ff7821ef3473e74bb201624ec66051b4..62e3adb357ce416c1625d6f4a1d0e3e71a12fa56 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);
    }
 }