]> gcc.gnu.org Git - gcc.git/commit
RISC-V: Remove redundant vec_duplicate pattern
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>
Mon, 18 Sep 2023 12:35:08 +0000 (20:35 +0800)
committerJeff Law <jlaw@ventanamicro.com>
Mon, 18 Sep 2023 18:22:13 +0000 (12:22 -0600)
commitfd9c44be778b11d16575bb8727ae88bef6486f1c
tree88a6ef78306f0148f9b0fab9050c2c48794ab0c8
parentad953241bd79ac64891c09726a163d05db0ec23a
RISC-V: Remove redundant vec_duplicate pattern

Currently, VLS and VLA patterns are different.
VLA is define_expand
VLS is define_insn_and_split

It makes no sense that they are different pattern format.
Merge them into same pattern (define_insn_and_split).
It can also be helpful for the future vv -> vx fwprop optimization.

gcc/ChangeLog:

* config/riscv/riscv-selftests.cc (run_broadcast_selftests): Adapt selftests.
* config/riscv/vector.md (@vec_duplicate<mode>): Remove.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/autovec/pr111313.c: Adapt test.

(cherry picked from commit 4260f4af4dde6dbf85c28da7e8aaf03985b3d171)
gcc/config/riscv/riscv-selftests.cc
gcc/config/riscv/vector.md
gcc/testsuite/gcc.target/riscv/rvv/autovec/pr111313.c
This page took 0.063598 seconds and 5 git commands to generate.