]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Disable two-source permutes for now [PR117173].
authorRobin Dapp <rdapp@ventanamicro.com>
Thu, 17 Oct 2024 16:39:16 +0000 (18:39 +0200)
committerRobin Dapp <rdapp@ventanamicro.com>
Mon, 27 Jan 2025 19:16:28 +0000 (20:16 +0100)
commit006b4e45f3ab169a47146b31d9721c79098236ac
tree932bd5b9af2fe32ed0a4f4db1a8f935f9cf294ce
parent9104472b645f76a212af9f9c58378500f9ba937e
RISC-V: Disable two-source permutes for now [PR117173].

After testing on the BPI (4.2% improvement for x264 input 1, 4.4% for
input 2) and the discussion in PR117173 I figured it's best to disable
the two-source permutes by default for now.

The patch adds a parameter "riscv-two-source-permutes" which restores
the old behavior.

PR target/117173

gcc/ChangeLog:

* config/riscv/riscv-v.cc (shuffle_generic_patterns): Only
support single-source permutes by default.
* config/riscv/riscv.opt: New param "riscv-two-source-permutes".

gcc/testsuite/ChangeLog:

* gcc.dg/fold-perm-2.c: Run with two-source permutes.
* gcc.dg/pr54346.c: Ditto.
gcc/config/riscv/riscv-v.cc
gcc/config/riscv/riscv.opt
gcc/testsuite/gcc.dg/fold-perm-2.c
gcc/testsuite/gcc.dg/pr54346.c