From f1c718c2673317b3bea0a48f21fdaa4e5caf228f Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Wed, 5 Oct 2016 11:28:50 +0300 Subject: [PATCH] armv8: Remove unnecessary register shuffling Change-Id: I48f79644a7c31dd82c1c531fb534b9e1c8a0d729 --- common/armv8/ih264_deblk_chroma_av8.s | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/common/armv8/ih264_deblk_chroma_av8.s b/common/armv8/ih264_deblk_chroma_av8.s index 2c63578..b7f2d58 100644 --- a/common/armv8/ih264_deblk_chroma_av8.s +++ b/common/armv8/ih264_deblk_chroma_av8.s @@ -335,14 +335,12 @@ ih264_deblk_chroma_horz_bslt4_av8: push_v_regs stp x19, x20, [sp, #-16]! sxtw x1, w1 - mov x8, x7 - mov w7, w6 - ldr x9, [sp, #80] + ldr x8, [sp, #80] sub x0, x0, x1, lsl #1 //x0 = uc_edgePixelU pointing to p1 of chroma U - rev w7, w7 // - mov v12.s[0], w7 //D12[0] = ui_Bs - ld1 {v16.s}[0], [x8] //D16[0] contains cliptab_cb - ld1 {v17.s}[0], [x9] //D17[0] contains cliptab_cr + rev w6, w6 // + mov v12.s[0], w6 //D12[0] = ui_Bs + ld1 {v16.s}[0], [x7] //D16[0] contains cliptab_cb + ld1 {v17.s}[0], [x8] //D17[0] contains cliptab_cr ld2 {v6.8b, v7.8b}, [x0], x1 //Q3=p1 tbl v14.8b, {v16.16b}, v12.8b //Retreiving cliptab values for U tbl v28.8b, {v17.16b}, v12.8b //Retrieving cliptab values for V