This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Committed] S/390: Adjust z10 defaults for loop unrolling/peeling
- From: "Andreas Krebbel" <krebbel at linux dot vnet dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 8 Apr 2010 13:52:52 +0200
- Subject: [Committed] S/390: Adjust z10 defaults for loop unrolling/peeling
Hi,
the values adjusted with the patch show good benchmark results on z10
while only moderately increasing the code size. So these values
should be the default for z10.
Committed to 4.4 and trunk.
2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
* config/s390/s390.c (override_options): Adjust the z10
defaults for max-unroll-times, max-completely-peeled-insns
and max-completely-peel-times.
Index: gcc/config/s390/s390.c
===================================================================
*** gcc/config/s390/s390.c.orig
--- gcc/config/s390/s390.c
*************** override_options (void)
*** 1636,1647 ****
target_flags |= MASK_LONG_DOUBLE_128;
#endif
! if (s390_tune == PROCESSOR_2097_Z10
! && !PARAM_SET_P (PARAM_MAX_UNROLLED_INSNS))
! set_param_value ("max-unrolled-insns", 100);
set_param_value ("max-pending-list-length", 256);
-
}
/* Map for smallest class containing reg regno. */
--- 1636,1654 ----
target_flags |= MASK_LONG_DOUBLE_128;
#endif
! if (s390_tune == PROCESSOR_2097_Z10)
! {
! if (!PARAM_SET_P (PARAM_MAX_UNROLLED_INSNS))
! set_param_value ("max-unrolled-insns", 100);
! if (!PARAM_SET_P (PARAM_MAX_UNROLL_TIMES))
! set_param_value ("max-unroll-times", 32);
! if (!PARAM_SET_P (PARAM_MAX_COMPLETELY_PEELED_INSNS))
! set_param_value ("max-completely-peeled-insns", 800);
! if (!PARAM_SET_P (PARAM_MAX_COMPLETELY_PEEL_TIMES))
! set_param_value ("max-completely-peel-times", 64);
! }
set_param_value ("max-pending-list-length", 256);
}
/* Map for smallest class containing reg regno. */