diff options
author | Juzhe-Zhong <juzhe.zhong@rivai.ai> | 2023-04-23 20:18:59 +0800 |
---|---|---|
committer | Kito Cheng <kito.cheng@sifive.com> | 2023-04-24 14:18:55 +0800 |
commit | ff8f95449350372b584cfcd28a7d9d71f52eea50 (patch) | |
tree | 428cdc6d4a3813e83398bed776afc7c1b89115ad /gcc/tree-ssa-phiopt.cc | |
parent | c5a1fa59ae3f44059a79086cbc506800d4149b69 (diff) | |
download | gcc-ff8f95449350372b584cfcd28a7d9d71f52eea50.zip gcc-ff8f95449350372b584cfcd28a7d9d71f52eea50.tar.gz gcc-ff8f95449350372b584cfcd28a7d9d71f52eea50.tar.bz2 |
RISC-V: Eliminate redundant vsetvli for duplicate AVL def
This patch is the V2 patch:https://patchwork.sourceware.org/project/gcc/patch/20230328010124.235703-1-juzhe.zhong@rivai.ai/
Address comments from Jeff. Add comments for all_avail_in_compatible_p and refine comments of codes.
gcc/ChangeLog:
* config/riscv/riscv-vsetvl.cc
(vector_infos_manager::all_avail_in_compatible_p): New function.
(pass_vsetvl::refine_vsetvls): Optimize vsetvls.
* config/riscv/riscv-vsetvl.h: New function.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/rvv/vsetvl/avl_single-102.c: New test.
Diffstat (limited to 'gcc/tree-ssa-phiopt.cc')
0 files changed, 0 insertions, 0 deletions