AArch64: Enable fast shifts on Neoverse N1
commitb326f495218a213079f572bd9960903b3425da74
authorWilco Dijkstra <wdijkstr@arm.com>
Mon, 24 May 2021 13:31:37 +0000 (24 14:31 +0100)
committerWilco Dijkstra <wdijkstr@arm.com>
Mon, 24 May 2021 14:00:42 +0000 (24 15:00 +0100)
treed7343bdefe1ce099f5242135c878c9dcb8645be3
parentfb0746f3a6b7fd0223efa71d0dc3fc02166e338b
AArch64: Enable fast shifts on Neoverse N1

Enable the fast shift feature in Neoverse N1 tuning - this means additions with
a shift left by 1-4 are as fast as addition. This improves multiply by constant
expansions, eg. x * 25 is now emitted using shifts rather than a multiply:

add w0, w0, w0, lsl 2
add w0, w0, w0, lsl 2

ChangeLog:
2020-09-11  Wilco Dijkstra  <wdijkstr@arm.com>

* config/aarch64/aarch64.c (neoversen1_tunings):
Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
gcc/config/aarch64/aarch64.c