]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Remove gather scale and offset handling.
authorRobin Dapp <rdapp@ventanamicro.com>
Tue, 7 Oct 2025 15:17:22 +0000 (17:17 +0200)
committerRobin Dapp <rdapp@ventanamicro.com>
Fri, 7 Nov 2025 20:09:46 +0000 (21:09 +0100)
commit9da7ccf12e6d5f8c4d73e99cd9d9013e84d634e1
treeeeb7fa42d8dee9d7dd24fa48aa9b32e39402a8ba
parentc07453dffe3c2dafd4c968a9f79c726ab816ca4b
RISC-V: Remove gather scale and offset handling.

With the recent vectorizer changes upstream the vectorizer can take care
of offset extension and scaling (and its proper costing) itself.
Thus, we can remove all related handling in expand_gather_scatter and
set the predicates in the gather/scatter expanders to what our
instructions actually support.

gcc/ChangeLog:

* config/riscv/autovec.md: Use const_1_operand for scale and
extend predicates.
* config/riscv/riscv-v.cc (expand_gather_scatter): Remove scale
and extension handling.
gcc/config/riscv/autovec.md
gcc/config/riscv/riscv-v.cc