[FFmpeg-cvslog] avcodec/x86/hevc_deblock: add %ifs to avoid "do nothing instructions"

Anton Khirnov git at videolan.org
Tue Jul 22 16:26:29 CEST 2014


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sat Jul 19 14:18:03 2014 +0200| [500a0394d57a91b919f7cacd2c2578c04c80e55c] | committer: Michael Niedermayer

avcodec/x86/hevc_deblock: add %ifs to avoid "do nothing instructions"

cherry picked from commit f7843356253459e6010320292dbbc1e888a5249b
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

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

diff --git a/libavcodec/x86/hevc_deblock.asm b/libavcodec/x86/hevc_deblock.asm
index 53cf138..2518511 100644
--- a/libavcodec/x86/hevc_deblock.asm
+++ b/libavcodec/x86/hevc_deblock.asm
@@ -353,12 +353,16 @@ ALIGN 16
 
     ;beta calculations
     mov             r11, [betaq];
+%if %1 > 8
     shl             r11, %1 - 8
+%endif
     movd            m13, r11d; beta0
     add           betaq, 4;
     punpcklwd       m13, m13
     mov             r12, [betaq];
+%if %1 > 8
     shl             r12, %1 - 8
+%endif
     movd            m14, r12d; beta1
     punpcklwd       m14, m14
     pshufd          m13, m14, 0; beta0, beta1



More information about the ffmpeg-cvslog mailing list