i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
authorJeff Law <law@redhat.com>
Mon, 13 May 2002 19:54:24 +0000 (13:54 -0600)
committerJeff Law <law@gcc.gnu.org>
Mon, 13 May 2002 19:54:24 +0000 (13:54 -0600)
        * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
        (ia32_multipass_dfa_lookahead): New function.

From-SVN: r53427

gcc/ChangeLog
gcc/config/i386/i386.c

index 2ebc0bdd9f8075c9a2eec5f461bff3d6d078c319..c14e729c07014c64abfed28a109711b2c0bd6434 100644 (file)
@@ -1,3 +1,8 @@
+2002-05-13  Jeffrey A Law  (law@redhat.com)
+
+       * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
+       (ia32_multipass_dfa_lookahead): New function.
+
 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
 
        * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
index b3c76712732293363ce533cc979c868e861ce6b8..3ed816e1bb5bcb699dc46c578332cdc17dc401c7 100644 (file)
@@ -48,6 +48,8 @@ static int ia32_use_dfa_pipeline_interface PARAMS ((void));
 
 #undef TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE 
 #define TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE ia32_use_dfa_pipeline_interface
+#undef TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD
+#define TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD ia32_multipass_dfa_lookahead
 
 static int
 ia32_use_dfa_pipeline_interface ()
@@ -57,6 +59,19 @@ ia32_use_dfa_pipeline_interface ()
   return 0;
 }
 
+/* How many alternative schedules to try.  This should be as wide as the
+   scheduling freedom in the DFA, but no wider.  Making this value too
+   large results extra work for the scheduler.  */
+
+static int
+ia32_multipass_dfa_lookahead ()
+{
+  if (ix86_cpu == PROCESSOR_PENTIUM)
+    return 2;
+  else
+   return 0;
+}
+
 #ifndef CHECK_STACK_LIMIT
 #define CHECK_STACK_LIMIT (-1)
 #endif