diff options
author | Maciej W. Rozycki <macro@embecosm.com> | 2021-11-02 16:05:00 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@embecosm.com> | 2021-11-02 16:05:00 +0000 |
commit | c33a5cc9e7f1475108892abb147f9382ecbaec12 (patch) | |
tree | d0a8570be11491567af2ee26fc00beca7480f6af /gcc/tree-ssa-structalias.c | |
parent | 64bf0c835f8918adf7e4140a04ac79c2963204aa (diff) | |
download | gcc-c33a5cc9e7f1475108892abb147f9382ecbaec12.zip gcc-c33a5cc9e7f1475108892abb147f9382ecbaec12.tar.gz gcc-c33a5cc9e7f1475108892abb147f9382ecbaec12.tar.bz2 |
RISC-V: Fix build errors with shNadd/shNadd.uw patterns in zba cost model
Fix a build regression from commit 04a9b554ba1a ("RISC-V: Cost model
for zba extension."):
.../gcc/config/riscv/riscv.c: In function 'bool riscv_rtx_costs(rtx, machine_mode, int, int, int*, bool)':
.../gcc/config/riscv/riscv.c:2018:11: error: 'and' of mutually exclusive equal-tests is always 0 [-Werror]
2018 | && IN_RANGE (INTVAL (XEXP (XEXP (x, 0), 0)), 1, 3))
| ^~
.../gcc/config/riscv/riscv.c:2047:17: error: unused variable 'ashift_lhs' [-Werror=unused-variable]
2047 | rtx ashift_lhs = XEXP (and_lhs, 0);
| ^~~~~~~~~~
by correcting a CONST_INT_P check referring the wrong operand and
getting rid of the unused variable.
gcc/
* config/riscv/riscv.c (riscv_rtx_costs): Correct a CONST_INT_P
check and remove an unused local variable with shNadd/shNadd.uw
pattern handling.
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
0 files changed, 0 insertions, 0 deletions