public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] RISC-V improve stack/array access by constant mat tweak
@ 2024-05-13 18:49 Vineet Gupta
  2024-05-13 18:49 ` [PATCH v2 1/2] RISC-V: avoid LUI based const materialization ... [part of PR/106265] Vineet Gupta
  2024-05-13 18:49 ` [PATCH v2 2/2] RISC-V: avoid LUI based const mat in prologue/epilogue expansion [PR/105733] Vineet Gupta
  0 siblings, 2 replies; 19+ messages in thread
From: Vineet Gupta @ 2024-05-13 18:49 UTC (permalink / raw)
  To: gcc-patches
  Cc: Jeff Law, kito.cheng, Palmer Dabbelt, Christoph Müllner,
	Robin Dapp, gnu-toolchain, Vineet Gupta

Hi,

This set of patches help improve stack/array accesses by improving
constant materialization. Details are in respective patches.

The first patch is the main change which improves SPEC cactu by 10%.

As discussed/agreed for v1 [1], I've dropped the splitter variant for
stack accesses.

I also have a few follow-ups which I come back to seperately.

Thx,
-Vineet

[1] https://gcc.gnu.org/pipermail/gcc-patches/2024-March/647874.html

Vineet Gupta (2):
  RISC-V: avoid LUI based const materialization ... [part of PR/106265]
  RISC-V: avoid LUI based const mat in prologue/epilogue expansion
    [PR/105733]

 gcc/config/riscv/constraints.md               |  6 ++
 gcc/config/riscv/predicates.md                |  6 ++
 gcc/config/riscv/riscv-protos.h               |  3 +
 gcc/config/riscv/riscv.cc                     | 85 +++++++++++++++++--
 gcc/config/riscv/riscv.h                      | 22 +++++
 gcc/config/riscv/riscv.md                     | 40 +++++++++
 gcc/testsuite/gcc.target/riscv/pr105733.c     | 15 ++++
 .../riscv/rvv/autovec/vls/spill-1.c           |  4 +-
 .../riscv/rvv/autovec/vls/spill-2.c           |  4 +-
 .../riscv/rvv/autovec/vls/spill-3.c           |  4 +-
 .../riscv/rvv/autovec/vls/spill-4.c           |  4 +-
 .../riscv/rvv/autovec/vls/spill-5.c           |  4 +-
 .../riscv/rvv/autovec/vls/spill-6.c           |  4 +-
 .../riscv/rvv/autovec/vls/spill-7.c           |  4 +-
 .../gcc.target/riscv/sum-of-two-s12-const-1.c | 45 ++++++++++
 .../gcc.target/riscv/sum-of-two-s12-const-2.c | 15 ++++
 .../gcc.target/riscv/sum-of-two-s12-const-3.c | 22 +++++
 17 files changed, 266 insertions(+), 21 deletions(-)
 create mode 100644 gcc/testsuite/gcc.target/riscv/pr105733.c
 create mode 100644 gcc/testsuite/gcc.target/riscv/sum-of-two-s12-const-1.c
 create mode 100644 gcc/testsuite/gcc.target/riscv/sum-of-two-s12-const-2.c
 create mode 100644 gcc/testsuite/gcc.target/riscv/sum-of-two-s12-const-3.c

-- 
2.34.1


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2024-05-20 16:44 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-13 18:49 [PATCH v2 0/2] RISC-V improve stack/array access by constant mat tweak Vineet Gupta
2024-05-13 18:49 ` [PATCH v2 1/2] RISC-V: avoid LUI based const materialization ... [part of PR/106265] Vineet Gupta
2024-05-13 20:15   ` Jeff Law
2024-05-14 18:38     ` [COMMITTED] " Vineet Gupta
2024-05-13 21:13   ` Follow up #1 (was Re: [PATCH v2 1/2] RISC-V: avoid LUI based const materialization ... [part of PR/106265]) Vineet Gupta
2024-05-13 22:47     ` Jeff Law
2024-05-13 23:08       ` Vineet Gupta
2024-05-14 22:12         ` Palmer Dabbelt
2024-05-14 23:12           ` Vineet Gupta
2024-05-13 18:49 ` [PATCH v2 2/2] RISC-V: avoid LUI based const mat in prologue/epilogue expansion [PR/105733] Vineet Gupta
2024-05-13 20:28   ` Jeff Law
2024-05-14  0:54     ` Patrick O'Neill
2024-05-14  3:36       ` Jeff Law
2024-05-14 14:51         ` Patrick O'Neill
2024-05-14 14:54           ` Jeff Law
2024-05-14 15:44           ` Jeff Law
2024-05-14 16:36             ` Vineet Gupta
2024-05-14 17:06               ` Jeff Law
2024-05-20 16:44             ` epilogue expansion alloca codepath (was Re: [PATCH v2 2/2] RISC-V: avoid LUI based const mat in prologue/epilogue expansion [PR/105733]) Vineet Gupta

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).