public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-9312] RISC-V: Cleanup unused code in riscv_v_adjust_bytesize [NFC]
@ 2024-03-05 9:22 Pan Li
0 siblings, 0 replies; only message in thread
From: Pan Li @ 2024-03-05 9:22 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:1a8dde963590b415768b070bd309b188858dc589
commit r14-9312-g1a8dde963590b415768b070bd309b188858dc589
Author: Pan Li <pan2.li@intel.com>
Date: Tue Mar 5 15:29:15 2024 +0800
RISC-V: Cleanup unused code in riscv_v_adjust_bytesize [NFC]
Cleanup mode_size related code which is not used anymore. Below tests are
passed for this patch.
* The RVV fully regresssion test.
gcc/ChangeLog:
* config/riscv/riscv.cc (riscv_v_adjust_bytesize): Cleanup unused
mode_size related code.
Signed-off-by: Pan Li <pan2.li@intel.com>
Diff:
---
gcc/config/riscv/riscv.cc | 4 ----
1 file changed, 4 deletions(-)
diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc
index 56cd8d2c23f..691d967de29 100644
--- a/gcc/config/riscv/riscv.cc
+++ b/gcc/config/riscv/riscv.cc
@@ -1527,10 +1527,6 @@ riscv_v_adjust_bytesize (machine_mode mode, int scale)
return BYTES_PER_RISCV_VECTOR;
poly_int64 nunits = GET_MODE_NUNITS (mode);
- poly_int64 mode_size = GET_MODE_SIZE (mode);
-
- if (maybe_eq (mode_size, (uint16_t) -1))
- mode_size = riscv_vector_chunks * scale;
if (nunits.coeffs[0] > 8)
return exact_div (nunits, 8);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-03-05 9:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-05 9:22 [gcc r14-9312] RISC-V: Cleanup unused code in riscv_v_adjust_bytesize [NFC] Pan Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).