[FFmpeg-cvslog] aarch64: me_cmp: Remove a leftover unnecessary instruction

Martin Storsjö git at videolan.org
Thu Aug 18 12:15:43 EEST 2022


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Thu Aug 18 12:14:15 2022 +0300| [48be6616d0536c5b0ff3ee58caee4c024ca64116] | committer: Martin Storsjö

aarch64: me_cmp: Remove a leftover unnecessary instruction

This was missed in a2e45ad407c526cd5ce2f3a361fb98084228cd6e.

Signed-off-by: Martin Storsjö <martin at martin.st>

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

 libavcodec/aarch64/me_cmp_neon.S | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libavcodec/aarch64/me_cmp_neon.S b/libavcodec/aarch64/me_cmp_neon.S
index b89c25438e..4198985c6c 100644
--- a/libavcodec/aarch64/me_cmp_neon.S
+++ b/libavcodec/aarch64/me_cmp_neon.S
@@ -328,7 +328,6 @@ function ff_pix_abs16_y2_neon, export=1
         // initialize buffers
         movi            v29.8h, #0                      // clear the accumulator
         movi            v28.8h, #0                      // clear the accumulator
-        movi            d18, #0
         add             x5, x2, x3                      // pix2 + stride
         cmp             w4, #4
         b.lt            2f
@@ -386,9 +385,8 @@ function ff_pix_abs16_y2_neon, export=1
 3:
         add             v29.8h, v29.8h, v28.8h          // Add vectors together
         uaddlv          s16, v29.8h                     // Add up vector values
-        add             d18, d18, d16
 
-        fmov            w0, s18
+        fmov            w0, s16
 
         ret
 endfunc



More information about the ffmpeg-cvslog mailing list