Wilco Dijkstra <wilco.dijks...@arm.com> writes: > Since all Armv9 cores support shifted LDRH/STRH, use the correct cost of zero > for these. > > Passes regress, OK for commit? > > gcc: > * config/aarch64/tuning_models/generic_armv9_a.h > (generic_armv9_a_addrcost_table): Use zero cost for himode.
OK if there are no objections in 24 hours. I suppose at some point we should also update the cortex-a510 and cortex-a520 entries in aarch64-cores.def to use a more up-to-date tuning structure. Richard > > --- > > diff --git a/gcc/config/aarch64/tuning_models/generic_armv9_a.h > b/gcc/config/aarch64/tuning_models/generic_armv9_a.h > index > f76a2506f3841a05a89285e50ad96c8665732955..9eb1a20d3c4e5d5a3b6c8bf8a2c341a82ac8f7da > 100644 > --- a/gcc/config/aarch64/tuning_models/generic_armv9_a.h > +++ b/gcc/config/aarch64/tuning_models/generic_armv9_a.h > @@ -26,7 +26,7 @@ > static const struct cpu_addrcost_table generic_armv9_a_addrcost_table = > { > { > - 1, /* hi */ > + 0, /* hi */ > 0, /* si */ > 0, /* di */ > 1, /* ti */