]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Change fma_reassoc_width tuning for ampere1
authorDi Zhao OS <dizhao@os.amperecomputing.com>
Thu, 22 Jun 2023 14:16:57 +0000 (15:16 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Thu, 22 Jun 2023 14:16:57 +0000 (15:16 +0100)
This patch enables reassociation of floating-point additions on ampere1.
This brings about 1% overall benefit on spec2017 fprate cases. (There
are minor regressions in 510.parest_r and 508.namd_r, analyzed here:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110279 .)

gcc/ChangeLog:

* config/aarch64/aarch64.cc: Change fma_reassoc_width for ampere1.

gcc/config/aarch64/aarch64.cc

index b99f12c99e9eaa93dc534ff2d437b30f6d594dfe..644ebdebc0e021361331f683c3280772717e0c73 100644 (file)
@@ -1929,7 +1929,7 @@ static const struct tune_params ampere1_tunings =
   "32:16",     /* loop_align.  */
   2,   /* int_reassoc_width.  */
   4,   /* fp_reassoc_width.  */
-  1,   /* fma_reassoc_width.  */
+  4,   /* fma_reassoc_width.  */
   2,   /* vec_reassoc_width.  */
   2,   /* min_div_recip_mul_sf.  */
   2,   /* min_div_recip_mul_df.  */