https://gcc.gnu.org/g:f087f73ad839b75d1d00599aa20ee6c738c741ea
commit r17-6679-gf087f73ad839b75d1d00599aa20ee6c738c741ea Author: xiezhiheng <[email protected]> Date: Fri Nov 20 02:53:05 2026 +0000 aarch64: Tune function/loop alignment for hip12 The function_align and loop_align values were originally inherited from tsv110. However, I later found that SWOG recommends 32-byte alignment. After setting them to 32-byte alignment, I ran some performance tests on SPEC and observed about a 0.4% performance improvement. Another important reason is that 32-byte alignment reduces the noise in performance measurements. gcc/ChangeLog: * config/aarch64/tuning_models/hip12.h: Tune function_align and loop_align. Signed-off-by: Zhiheng Xie <[email protected]> Diff: --- gcc/config/aarch64/tuning_models/hip12.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/config/aarch64/tuning_models/hip12.h b/gcc/config/aarch64/tuning_models/hip12.h index 8a3b52bbac8a..e9a2e5bb0eb9 100644 --- a/gcc/config/aarch64/tuning_models/hip12.h +++ b/gcc/config/aarch64/tuning_models/hip12.h @@ -207,9 +207,9 @@ static const struct tune_params hip12_tunings = (AARCH64_FUSE_BASE | AARCH64_FUSE_CMP_CSEL | AARCH64_FUSE_CMP_CSET), /* fusible_ops */ - "16", /* function_align. */ + "32", /* function_align. */ "4", /* jump_align. */ - "8", /* loop_align. */ + "32:16", /* loop_align. */ 2, /* int_reassoc_width. */ 4, /* fp_reassoc_width. */ 2, /* fma_reassoc_width. */
