[committed] RISC-V: Fix redundant variable declaration.

Message ID 20230721095727.221308-1-juzhe.zhong@rivai.ai
State Unresolved
Headers
Series [committed] RISC-V: Fix redundant variable declaration. |

Checks

Context Check Description
snail/gcc-patch-check warning Git am fail log

Commit Message

juzhe.zhong@rivai.ai July 21, 2023, 9:57 a.m. UTC
  Notice there is mistakes for RISC-V I made in the last patch.
Fix it. Sorry about that.

gcc/ChangeLog:

	* config/riscv/riscv-v.cc (expand_gather_scatter): Remove redundant variables.

---
 gcc/config/riscv/riscv-v.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/gcc/config/riscv/riscv-v.cc b/gcc/config/riscv/riscv-v.cc
index eb92451948e..31575428ecb 100644
--- a/gcc/config/riscv/riscv-v.cc
+++ b/gcc/config/riscv/riscv-v.cc
@@ -3212,7 +3212,7 @@  prepare_gather_scatter (machine_mode vec_mode, machine_mode idx_mode,
 void
 expand_gather_scatter (rtx *ops, bool is_load)
 {
-  rtx ptr, vec_offset, vec_reg, len, mask;
+  rtx ptr, vec_offset, vec_reg;
   bool zero_extend_p;
   int scale_log2;
   rtx mask = ops[5];