]> gcc.gnu.org Git - gcc.git/commit
Decrease cortexa57_extra_costs's alu.shift_reg
authorAndrew Pinski <apinski@marvell.com>
Sat, 11 Jan 2020 20:34:24 +0000 (20:34 +0000)
committerAndrew Pinski <apinski@marvell.com>
Fri, 24 Jan 2020 21:33:43 +0000 (21:33 +0000)
commit6ccc19bd4d12379a0d9fce486ceba3207749424a
treefebed7cc0aa767aa9fa74d10bfdfbe36eeb3bec8
parentd54a86cd92860e1108f43fae9329ccb0897f3e1d
Decrease cortexa57_extra_costs's alu.shift_reg

Like I mentioned in https://gcc.gnu.org/ml/gcc/2020-01/msg00157.html,
The shift by a register should be just COSTS_N_INSNS (1) rather than
COSTS_N_INSNS (2).  This allows lshift_cheap_p to return true now
and converting switches to be using shift and other like
structures.  I noticed this difference when I was working
through PR 93131 and understanding what reassoc could handle.

ChangeLog:
* config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Change
alu.shift_reg to 0.
gcc/ChangeLog
gcc/config/arm/aarch-cost-tables.h
This page took 0.058195 seconds and 6 git commands to generate.