[FFmpeg-cvslog] avutil/x86util: don' t use movss in VBROADCASTSS macro when src and dst args are the same

James Almer git at videolan.org
Wed Mar 22 00:16:24 EET 2017


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Mon Mar 20 19:39:49 2017 -0300| [d8962ffbd8aaf9485d06eec045b022ba9c39692b] | committer: James Almer

avutil/x86util: don't use movss in VBROADCASTSS macro when src and dst args are the same

Reviewed-by: Henrik Gramner <henrik at gramner.com>
Signed-off-by: James Almer <jamrial at gmail.com>

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

 libavutil/x86/x86util.asm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavutil/x86/x86util.asm b/libavutil/x86/x86util.asm
index de7d2d1..fe9a727 100644
--- a/libavutil/x86/x86util.asm
+++ b/libavutil/x86/x86util.asm
@@ -833,7 +833,9 @@
 %if cpuflag(avx)
     vbroadcastss %1, %2
 %else ; sse
+%ifnidn %1, %2
     movss        %1, %2
+%endif
     shufps       %1, %1, 0
 %endif
 %endmacro



More information about the ffmpeg-cvslog mailing list