]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Improve bitwise and ashift reassociation for single-bit immediate without...
authorXi Ruoyao <xry111@xry111.site>
Mon, 13 Jan 2025 18:28:05 +0000 (11:28 -0700)
committerJeff Law <jlaw@ventanamicro.com>
Mon, 13 Jan 2025 18:28:05 +0000 (11:28 -0700)
commit107d5d682576e54963ddd36f3f21bc6b9506d278
tree8da0335c4e35c288fb2c1b4734c9afc660fc96f7
parent8d577a01cdbe02a23724b710b579b7811c983c33
RISC-V: Improve bitwise and ashift reassociation for single-bit immediate without zbs [PR 115921]

When zbs is not available, there's nothing special with single-bit
immediates and we should perform reassociation as normal immediates.

gcc/ChangeLog:

PR target/115921
* config/riscv/riscv.md (<optab>_shift_reverse): Only check
popcount_hwi if !TARGET_ZBS.
gcc/config/riscv/riscv.md