diff options
author | James Almer <jamrial@gmail.com> | 2014-07-29 04:30:11 -0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-07-29 13:27:44 +0200 |
commit | c74b08c5c60a83603758f382f9b4f5789f509cd6 (patch) | |
tree | 0ca8803be88448e7aec79f6fa4fda000a8be8d98 /libavcodec/x86/hevc_deblock.asm | |
parent | 65746bfbae3d1077656b48820f0c18c5703e34f7 (diff) | |
download | ffmpeg-c74b08c5c60a83603758f382f9b4f5789f509cd6.tar.gz |
x86/hevc_deblock: remove some unnecessary instructions
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/x86/hevc_deblock.asm')
-rw-r--r-- | libavcodec/x86/hevc_deblock.asm | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/libavcodec/x86/hevc_deblock.asm b/libavcodec/x86/hevc_deblock.asm index e38181db43..cfa7c48ead 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 |