]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Remove redundant vcond patterns
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>
Mon, 26 Jun 2023 03:38:30 +0000 (11:38 +0800)
committerPan Li <pan2.li@intel.com>
Mon, 26 Jun 2023 11:04:37 +0000 (19:04 +0800)
commit9f76f04be40adffb2d3498010a23051502031140
treeea59602338aafa26f4cd6b7cdd2dc9e477554cf5
parentab6eac20f00761695c69b555f6b0a026bc25770d
RISC-V: Remove redundant vcond patterns

Previously, Richi has suggested that vcond patterns are only needed when target
support comparison + select consuming 1 instruction.

Now, I do the experiments on removing those "vcond" patterns, it works perfectly.

All testcases PASS.

Really appreicate Richi helps us recognize such issue.

Now remove all "vcond" patterns as Richi suggested.

gcc/ChangeLog:

* config/riscv/autovec.md (vcond<V:mode><VI:mode>): Remove redundant
vcond patterns.
(vcondu<V:mode><VI:mode>): Ditto.
* config/riscv/riscv-protos.h (expand_vcond): Ditto.
* config/riscv/riscv-v.cc (expand_vcond): Ditto.
gcc/config/riscv/autovec.md
gcc/config/riscv/riscv-protos.h
gcc/config/riscv/riscv-v.cc