From: Pan Li <pan2...@intel.com>

Per discussion from PR118931 thread, the expand_const_vector is
quit long with more than 500 lines, which is unfriendly for debugging
and maintaince.  Thus, we extract some sub functions to make it clear
and delicate the concrete const vector expanding into sub functions.
Aka:

expand_const_vector
 |- expand_const_vec_duplicate
 |- expand_const_vec_series
 |- expand_const_vector_duplicate
     |- expand_const_vector_duplicate_repeating
     |- expand_const_vector_duplicate_default
 |- expand_const_vector_stepped
     |- expand_const_vector_single_step_npatterns
     |- expand_const_vector_interleaved_stepped_npatterns

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

Pan Li (4):
  RISC-V: Extract vec_duplicate for expand_const_vector [NFC]
  RISC-V: Extract vec_series for expand_const_vector [NFC]
  RISC-V: Extract vector duplicate for expand_const_vector [NFC]
  RISC-V: Extract vector stepped for expand_const_vector [NFC]

 gcc/config/riscv/riscv-v.cc | 850 +++++++++++++++++++-----------------
 1 file changed, 450 insertions(+), 400 deletions(-)

-- 
2.43.0

Reply via email to