]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Use helper function to get FPR to VR move cost
authorPaul-Antoine Arras <parras@baylibre.com>
Wed, 28 May 2025 10:09:22 +0000 (12:09 +0200)
committerPaul-Antoine Arras <parras@baylibre.com>
Tue, 3 Jun 2025 09:47:34 +0000 (11:47 +0200)
commit5566b20dd5f7fa14d93d2808414bf72882ec567e
tree41c4a2c828aba6d9a8feb4bc83c9eacf9ba8bbd1
parentb437418bc9547073ec2704398c85c52e060e1fab
RISC-V: Use helper function to get FPR to VR move cost

Since last patch introduced get_fr2vr_cost () to get the correct cost to move
data from a floating-point to a vector register, this patch replaces existing
uses of the constant FR2VR.

gcc/ChangeLog:

* config/riscv/riscv-vector-costs.cc (costs::adjust_stmt_cost): Replace
FR2VR with get_fr2vr_cost ().
* config/riscv/riscv.cc (riscv_register_move_cost): Likewise.
(riscv_builtin_vectorization_cost): Likewise.
gcc/config/riscv/riscv-vector-costs.cc
gcc/config/riscv/riscv.cc