diff options
author | James Almer <jamrial@gmail.com> | 2014-05-18 18:19:49 -0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-05-18 23:28:17 +0200 |
commit | 057ebf122276e50d52ad0a3e2da7db8913fceaf6 (patch) | |
tree | 6b14adfa96c23bb0dd449738f89afc958f0c12f3 | |
parent | 0c152fe916e3f01ac075c6d86e4778e11f807042 (diff) | |
download | ffmpeg-057ebf122276e50d52ad0a3e2da7db8913fceaf6.tar.gz |
x86/hevc_deblock: remove some duplicated instructions
Also remove a couple unnecessary cmps
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/x86/hevc_deblock.asm | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/libavcodec/x86/hevc_deblock.asm b/libavcodec/x86/hevc_deblock.asm index 858ae55541..e706053d43 100644 --- a/libavcodec/x86/hevc_deblock.asm +++ b/libavcodec/x86/hevc_deblock.asm @@ -424,15 +424,12 @@ ALIGN 16 shl r2, %1 - 8 movd m8, r2d; tc0 add tcq, 4; - punpcklwd m8, m8 mov r3d, [tcq]; shl r3, %1 - 8 - movd m9, r3d; tc0 - punpcklwd m9, m9 movd m9, r3d; tc1 add r2d, r3d; tc0 + tc1 - cmp r2d, 0; - je .bypassluma + jz .bypassluma + punpcklwd m8, m8 punpcklwd m9, m9 shufps m8, m9, 0; tc0, tc1 mova m9, m8 @@ -488,8 +485,7 @@ ALIGN 16 and r2, 1 movd m10, r2d; store to xmm for mask generation or r14, r2; final strong mask, bits 1 and 0 - cmp r14, 0; - je .weakfilter + jz .weakfilter shufps m10, m12, 0 @@ -578,8 +574,7 @@ ALIGN 16 .weakfilter: not r14; strong mask -> weak mask and r14, r13; final weak filtering mask, bits 0 and 1 - cmp r14, 0; - je .store + jz .store ; weak filtering mask mov r2, r14 |