[0/3] RISC-V: optimize stack manipulation in save-restore

Message ID 20221201100332.22226-1-gaofei@eswincomputing.com
Headers
Series RISC-V: optimize stack manipulation in save-restore |

Message

Fei Gao Dec. 1, 2022, 10:03 a.m. UTC
  The patches allow less instructions to be used in stack allocation 
and deallocation if save-restore enabled, and also make the stack 
manipulation codes more readable.

Fei Gao (3):
  RISC-V: add a new parameter in riscv_first_stack_step.
  RISC-V: optimize stack manipulation in save-restore
  RISC-V: make the stack manipulation codes more readable.

 gcc/config/riscv/riscv.cc                     | 105 +++++++++---------
 .../gcc.target/riscv/stack_save_restore.c     |  40 +++++++
 2 files changed, 95 insertions(+), 50 deletions(-)
 create mode 100644 gcc/testsuite/gcc.target/riscv/stack_save_restore.c