[v1] RISC-V: Remove unused structure in cost model

Message ID 20230912130254.1658075-1-pan2.li@intel.com
State Unresolved
Headers
Series [v1] RISC-V: Remove unused structure in cost model |

Checks

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

Commit Message

Li, Pan2 via Gcc-patches Sept. 12, 2023, 1:02 p.m. UTC
  From: Pan Li <pan2.li@intel.com>

The struct range is unused, remove it.

gcc/ChangeLog:

	* config/riscv/riscv-vector-costs.h (struct range): Removed.

Signed-off-by: Pan Li <pan2.li@intel.com>
---
 gcc/config/riscv/riscv-vector-costs.h | 7 -------
 1 file changed, 7 deletions(-)
  

Comments

Jeff Law Sept. 12, 2023, 1:11 p.m. UTC | #1
On 9/12/23 07:02, Pan Li via Gcc-patches wrote:
> From: Pan Li <pan2.li@intel.com>
> 
> The struct range is unused, remove it.
> 
> gcc/ChangeLog:
> 
> 	* config/riscv/riscv-vector-costs.h (struct range): Removed.
OK
jeff
  
Li, Pan2 via Gcc-patches Sept. 12, 2023, 1:21 p.m. UTC | #2
Committed, thanks Jeff.

Pan

-----Original Message-----
From: Jeff Law <jeffreyalaw@gmail.com> 
Sent: Tuesday, September 12, 2023 9:12 PM
To: Li, Pan2 <pan2.li@intel.com>; gcc-patches@gcc.gnu.org
Cc: Wang, Yanzhang <yanzhang.wang@intel.com>; kito.cheng@gmail.com; juzhe.zhong@rivai.ai
Subject: Re: [PATCH v1] RISC-V: Remove unused structure in cost model



On 9/12/23 07:02, Pan Li via Gcc-patches wrote:
> From: Pan Li <pan2.li@intel.com>
> 
> The struct range is unused, remove it.
> 
> gcc/ChangeLog:
> 
> 	* config/riscv/riscv-vector-costs.h (struct range): Removed.
OK
jeff
  

Patch

diff --git a/gcc/config/riscv/riscv-vector-costs.h b/gcc/config/riscv/riscv-vector-costs.h
index 7f120b79619..7b5814a4cff 100644
--- a/gcc/config/riscv/riscv-vector-costs.h
+++ b/gcc/config/riscv/riscv-vector-costs.h
@@ -40,13 +40,6 @@  struct autovec_info
   bool end_p;
 };
 
-struct range
-{
-  unsigned int pt;
-  bool start;
-  unsigned int nregs;
-};
-
 /* rvv-specific vector costs.  */
 class costs : public vector_costs
 {