s390.c (override_options): Adjust the z10 defaults for max-unroll-times...
authorWolfgang Gellerich <gellerich@de.ibm.com>
Thu, 8 Apr 2010 11:45:34 +0000 (11:45 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Thu, 8 Apr 2010 11:45:34 +0000 (11:45 +0000)
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.

From-SVN: r158122

gcc/ChangeLog
gcc/config/s390/s390.c

index 6f4ef744d0ec381f2b2c5857c35a6fcf71bd9cbc..856656f51b21a46a83e81f766682fa2dd519a055 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
 
        * config/s390/s390.c (s390_expand_movmem): Issue prefetch
index 05ad9f2382e4760ce2db6fc900f9aff6f79e5991..e6cc4ba56a4e4bab12e043e1ae93f8dc2891d5fd 100644 (file)
@@ -1636,12 +1636,19 @@ override_options (void)
     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);
+  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.  */