diff mbox series

[FFmpeg-devel] codec/arm/hevcdsp_idct_neon: remove duplicate mov

Message ID tencent_589821465B70B06CFC3CB6657BA194ECD207@qq.com
State Accepted
Commit b10eabdab3e2bd5d4d8e66064dda63185d6829b4
Headers show
Series [FFmpeg-devel] codec/arm/hevcdsp_idct_neon: remove duplicate mov | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished

Commit Message

徐福隆 March 6, 2023, 2:18 a.m. UTC
---
 libavcodec/arm/hevcdsp_idct_neon.S | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

Comments

Martin Storsjö March 7, 2023, 8:54 p.m. UTC | #1
On Mon, 6 Mar 2023, xufuji456 wrote:

> ---
> libavcodec/arm/hevcdsp_idct_neon.S | 10 ++--------
> 1 file changed, 2 insertions(+), 8 deletions(-)
>
> diff --git a/libavcodec/arm/hevcdsp_idct_neon.S b/libavcodec/arm/hevcdsp_idct_neon.S
> index 41ca3b83a8..66ed1c6785 100644
> --- a/libavcodec/arm/hevcdsp_idct_neon.S
> +++ b/libavcodec/arm/hevcdsp_idct_neon.S
> @@ -877,33 +877,27 @@ function func_tr_32x4_\name
>         vld1.s16        {q0}, [r9, :128]!
>         vld1.s16        {q1}, [r9, :128]
>         add             r4, sp, #2048
> +        mov             r2, #64
> +        mov             r8, #-64
>
>         bl              tr_block1
>         mov             r1, r11
> -        mov             r2, #64
> -        mov             r8, #-64
>         add             r3, r11, #(56 + 3 * 64)
>         scale_store     \shift
>
>         bl              tr_block2
>         add             r1, r11, #8
>         add             r3, r11, #(48 + 3 * 64)
> -        mov             r2, #64
> -        mov             r8, #-64
>         scale_store     \shift
>
>         bl              tr_block3
>         add             r1, r11, #16
>         add             r3, r11, #(40 + 3 * 64)
> -        mov             r2, #64
> -        mov             r8, #-64
>         scale_store     \shift
>
>         bl              tr_block4
>         add             r1, r11, #24
>         add             r3, r11, #(32 + 3 * 64)
> -        mov             r2, #64
> -        mov             r8, #-64
>         scale_store     \shift
>
>         bx               r10
> -- 
> 2.32.0 (Apple Git-132)

LGTM, thanks, will push in a moment.

// Martin
diff mbox series

Patch

diff --git a/libavcodec/arm/hevcdsp_idct_neon.S b/libavcodec/arm/hevcdsp_idct_neon.S
index 41ca3b83a8..66ed1c6785 100644
--- a/libavcodec/arm/hevcdsp_idct_neon.S
+++ b/libavcodec/arm/hevcdsp_idct_neon.S
@@ -877,33 +877,27 @@  function func_tr_32x4_\name
         vld1.s16        {q0}, [r9, :128]!
         vld1.s16        {q1}, [r9, :128]
         add             r4, sp, #2048
+        mov             r2, #64
+        mov             r8, #-64
 
         bl              tr_block1
         mov             r1, r11
-        mov             r2, #64
-        mov             r8, #-64
         add             r3, r11, #(56 + 3 * 64)
         scale_store     \shift
 
         bl              tr_block2
         add             r1, r11, #8
         add             r3, r11, #(48 + 3 * 64)
-        mov             r2, #64
-        mov             r8, #-64
         scale_store     \shift
 
         bl              tr_block3
         add             r1, r11, #16
         add             r3, r11, #(40 + 3 * 64)
-        mov             r2, #64
-        mov             r8, #-64
         scale_store     \shift
 
         bl              tr_block4
         add             r1, r11, #24
         add             r3, r11, #(32 + 3 * 64)
-        mov             r2, #64
-        mov             r8, #-64
         scale_store     \shift
 
         bx               r10