[gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] RISC-V: Remove unused structure in cost model

Jeff Law law@gcc.gnu.org
Mon Sep 18 18:25:24 GMT 2023


https://gcc.gnu.org/g:49eb15ab0b07d1f7b7bbbd156619a2848e16ca6f

commit 49eb15ab0b07d1f7b7bbbd156619a2848e16ca6f
Author: Pan Li <pan2.li@intel.com>
Date:   Tue Sep 12 21:01:34 2023 +0800

    RISC-V: Remove unused structure in cost model
    
    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>
    (cherry picked from commit 75f069a6403b5d4217fb5b654a9c656b4dca9dc1)

Diff:
---
 gcc/config/riscv/riscv-vector-costs.h | 7 -------
 1 file changed, 7 deletions(-)

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
 {


More information about the Gcc-cvs mailing list