From: Pan Li <[email protected]>

The adjust_stmt_cost doesn't honor the value of param=gpr2vr-cost, which
result in some cases fail to vectorize on cost.

The below test suites are passed for this patch series.
* The rv64gcv fully regression test.
* Fix the vx_vf/vx-4* testcases.

Pan Li (2):
  RISC-V: Bugfix adjust_stmt_cost doesn't honor param=gpr2vr-cost [PR123916]
  RISC-V: Add test case for PR123916

 gcc/config/riscv/riscv-vector-costs.cc        |  5 +-
 .../gcc.target/riscv/rvv/autovec/pr123916.c   | 48 +++++++++++++++++++
 2 files changed, 49 insertions(+), 4 deletions(-)
 create mode 100644 gcc/testsuite/gcc.target/riscv/rvv/autovec/pr123916.c

-- 
2.43.0

Reply via email to