This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]