diff options
author | Jiawei <jiawei@iscas.ac.cn> | 2023-06-07 20:56:40 +0800 |
---|---|---|
committer | Kito Cheng <kito.cheng@sifive.com> | 2023-08-14 22:10:26 +0800 |
commit | 6e46fcdf24f99ce1272305aac93cac51d45c04d6 (patch) | |
tree | e8a71a28cdd9e7776ec6b735e1dc96eae4020efe /gcc/tree-cfg.cc | |
parent | 17c22f466162d3a1759f8c607b7e81e7dd631cd9 (diff) | |
download | gcc-6e46fcdf24f99ce1272305aac93cac51d45c04d6.zip gcc-6e46fcdf24f99ce1272305aac93cac51d45c04d6.tar.gz gcc-6e46fcdf24f99ce1272305aac93cac51d45c04d6.tar.bz2 |
RISC-V: Enable compressible features when use ZC* extensions.
This patch enables the compressible features with ZC* extensions.
Since all ZC* extension depends on the Zca extension, it's sufficient to only
add the target Zca to extend the target RVC.
Co-Authored by: Mary Bennett <mary.bennett@embecosm.com>
Co-Authored by: Nandni Jamnadas <nandni.jamnadas@embecosm.com>
Co-Authored by: Simon Cook <simon.cook@embecosm.com>
gcc/ChangeLog:
* config/riscv/riscv-c.cc (riscv_cpu_cpp_builtins):
Enable compressed builtins when ZC* extensions enabled.
* config/riscv/riscv-shorten-memrefs.cc:
Enable shorten_memrefs pass when ZC* extensions enabled.
* config/riscv/riscv.cc (riscv_compressed_reg_p):
Enable compressible registers when ZC* extensions enabled.
(riscv_rtx_costs): Allow adjusting rtx costs when ZC* extensions enabled.
(riscv_address_cost): Allow adjusting address cost when ZC* extensions enabled.
(riscv_first_stack_step): Allow compression of the register saves
without adding extra instructions.
* config/riscv/riscv.h (FUNCTION_BOUNDARY): Adjusts function boundary
to 16 bits when ZC* extensions enabled.
Diffstat (limited to 'gcc/tree-cfg.cc')
0 files changed, 0 insertions, 0 deletions