]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Extract vec_duplicate for expand_const_vector [NFC]
authorPan Li <pan2.li@intel.com>
Wed, 16 Apr 2025 03:16:21 +0000 (11:16 +0800)
committerPan Li <pan2.li@intel.com>
Sun, 27 Apr 2025 02:08:56 +0000 (10:08 +0800)
commite6e42a709f3cd87e7a5efca72267cab57e0385cb
tree0d6a5a4d3386ec56737de7ca90ae4636c0033a4c
parentd85444a3b00c9a6fce56459af5ec081439a9aaa0
RISC-V: Extract vec_duplicate for expand_const_vector [NFC]

Consider the expand_const_vector is quit long (about 500 lines)
and complicated, we would like to extract the different case
into different functions.  For example, the const vec_duplicate
will be extracted into expand_const_vec_duplicate.

The below test suites are passed for this patch.
* The rv64gcv fully regression test.

gcc/ChangeLog:

* config/riscv/riscv-v.cc (expand_const_vector): Extract
const vec_duplicate into separated function.
(expand_const_vec_duplicate): Add new func to take care
of the const vec_duplicate.

Signed-off-by: Pan Li <pan2.li@intel.com>
gcc/config/riscv/riscv-v.cc