]> git.ipfire.org Git - thirdparty/gcc.git/commit
AArch64: Add fma_reassoc_width [PR107413]
authorWilco Dijkstra <wilco.dijkstra@arm.com>
Wed, 23 Nov 2022 17:27:19 +0000 (17:27 +0000)
committerWilco Dijkstra <wilco.dijkstra@arm.com>
Thu, 24 Nov 2022 13:30:04 +0000 (13:30 +0000)
commit0c1b0a23f1fe7db6a2e391b7cb78cff900377772
tree3635f99729a30103f7954badb0a4a127ac77e6b3
parent138ee8f7453ffdd6856caf35cf32be6661086a54
AArch64: Add fma_reassoc_width [PR107413]

Add a reassocation width for FMA in per-CPU tuning structures. Keep
the existing setting of 1 for cores with 2 FMA pipes (this disables
reassociation), and use 4 for cores with 4 FMA pipes.  This improves
SPECFP2017 on Neoverse V1 by ~1.5%.

gcc/
PR tree-optimization/107413
* config/aarch64/aarch64.cc (struct tune_params): Add
fma_reassoc_width to all CPU tuning structures.
(aarch64_reassociation_width): Use fma_reassoc_width.
* config/aarch64/aarch64-protos.h (struct tune_params): Add
fma_reassoc_width.
gcc/config/aarch64/aarch64-protos.h
gcc/config/aarch64/aarch64.cc