[FFmpeg-cvslog] x86/hevc_deblock: remove some unnecessary instructions

James Almer git at videolan.org
Tue Jul 29 13:36:10 CEST 2014


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Tue Jul 29 04:30:11 2014 -0300| [c74b08c5c60a83603758f382f9b4f5789f509cd6] | committer: Michael Niedermayer

x86/hevc_deblock: remove some unnecessary instructions

Signed-off-by: James Almer <jamrial at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c74b08c5c60a83603758f382f9b4f5789f509cd6
---

 libavcodec/x86/hevc_deblock.asm |   11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/libavcodec/x86/hevc_deblock.asm b/libavcodec/x86/hevc_deblock.asm
index e38181d..cfa7c48 100644
--- a/libavcodec/x86/hevc_deblock.asm
+++ b/libavcodec/x86/hevc_deblock.asm
@@ -319,11 +319,9 @@ ALIGN 16
     paddw            m5, m4;
 
     ;tc calculations
-    movd             m6, [tcq]; tc0
+    movq             m6, [tcq]; tc0
     punpcklwd        m6, m6
-    movd             m4, [tcq+4]; tc1
-    punpcklwd        m4, m4
-    shufps           m6, m4, 0; tc0, tc1
+    pshufd           m6, m6, 0xA0; tc0, tc1
 %if cpuflag(ssse3)
     psignw           m4, m6, [pw_m1]; -tc0, -tc1
 %else
@@ -426,14 +424,13 @@ ALIGN 16
     shl             r11, %1 - 8
 %endif
     movd             m8, r11d; tc0
-    add             tcq, 4;
-    mov             r3d, [tcq];
+    mov             r3d, [tcq+4];
 %if %1 > 8
     shl              r3, %1 - 8
 %endif
-    movd             m9, r3d; tc1
     add            r11d, r3d; tc0 + tc1
     jz             .bypassluma
+    movd             m9, r3d; tc1
     punpcklwd        m8, m8
     punpcklwd        m9, m9
     shufps           m8, m9, 0; tc0, tc1



More information about the ffmpeg-cvslog mailing list