[x265] [PATCH 7 of 7] asm-intra-pred8.asm: replace 'lea' instruction with faster 'add' instruction

praveen at multicorewareinc.com praveen at multicorewareinc.com
Mon Mar 16 05:55:36 CET 2015


# HG changeset patch
# User Praveen Tiwari <praveen at multicorewareinc.com>
# Date 1426256516 -19800
# Node ID 1110d04ce385e5c043d0a1fa554f097a8d74f97b
# Parent  235d60ac97646c47c8a3da9f447ab25b8542cad3
asm-intra-pred8.asm: replace 'lea' instruction with faster 'add' instruction

diff -r 235d60ac9764 -r 1110d04ce385 source/common/x86/intrapred8.asm
--- a/source/common/x86/intrapred8.asm	Fri Mar 13 19:47:16 2015 +0530
+++ b/source/common/x86/intrapred8.asm	Fri Mar 13 19:51:56 2015 +0530
@@ -10795,7 +10795,7 @@
     INTRA_PRED_ANG16_MC0 r0 + 2 * r1, r0 + r3, 3
 
     lea               r0, [r0 + 4 * r1]
-    lea               r4, [r4 + 4 * mmsize]
+    add               r4, 4 * mmsize
 
     INTRA_PRED_ANG16_MC1 0
 
@@ -10826,7 +10826,7 @@
     INTRA_PRED_ANG16_MC1 2
 
     lea               r0, [r0 + 4 * r1]
-    lea               r4, [r4 + 4 * mmsize]
+    add               r4, 4 * mmsize
     INTRA_PRED_ANG16_MC1 0
 
     lea               r0, [r0 + 4 * r1]
@@ -10882,7 +10882,7 @@
     vbroadcasti128    m2, [r2 + 11]
     pshufb            m2, m5
 
-    lea               r4, [r4 + 4 * mmsize]
+    add               r4, 4 * mmsize
     INTRA_PRED_ANG16_MC0 r0 + r3, r0 + 4 * r1, 0
     lea               r0, [r0 + r1 * 4]
 
@@ -10902,7 +10902,7 @@
     lea               r0, [r0 + r1 * 4]
     INTRA_PRED_ANG16_MC0 r0, r0 + r1, 3
 
-    lea               r4, [r4 + 4 * mmsize]
+    add               r4, 4 * mmsize
     vbroadcasti128    m1, [r2 + 5]
     pshufb            m1, m5
     vbroadcasti128    m2, [r2 + 13]


More information about the x265-devel mailing list