aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1997-08-19 21:22:04 +0000
committerJeffrey A Law <law@cygnus.com>1997-08-19 21:22:04 +0000
commit246d6caf4e164eef6971d9dfaac27394784e63cd (patch)
treef55ec9552b76694bfeb977a15b530722e3a04148
parent306ca6af77f568035f67d11a2215ebc28bf7f6eb (diff)
* haifa-sched.c (ISSUE_RATE): Renamed from MACHINE_issue_rate.
(get_issue_rate): Delete. * pa.h (ISSUE_RATE): Define. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@14851 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/pa/pa.h8
-rw-r--r--gcc/haifa-sched.c6
3 files changed, 13 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index cb3b086572f..743ba8d7eb8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
Tue Aug 19 09:34:57 1997 Jeffrey A Law (law@cygnus.com)
+ * haifa-sched.c (ISSUE_RATE): Renamed from MACHINE_issue_rate.
+ (get_issue_rate): Delete.
+ * pa.h (ISSUE_RATE): Define.
+
* configure.in: Turn on haifa by default for the PA.
* configure: Rebuilt.
* pa.c (override_options): Accept -mschedule=7200 option.
diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h
index 1f5e900907f..ec7323564df 100644
--- a/gcc/config/pa/pa.h
+++ b/gcc/config/pa/pa.h
@@ -42,12 +42,16 @@ enum processor_type
PROCESSOR_7200
};
-#define pa_cpu_attr ((enum attr_cpu)pa_cpu)
-
/* For -mschedule= option. */
extern char *pa_cpu_string;
extern enum processor_type pa_cpu;
+#define pa_cpu_attr ((enum attr_cpu)pa_cpu)
+
+/* The 700 can only issue a single insn at a time.
+ The 7XXX processors can issue two insns at a time. */
+#define ISSUE_RATE (pa_cpu == PROCESSOR_700 ? 1 : 2)
+
/* Print subsidiary information on the compiler version in use. */
#define TARGET_VERSION fputs (" (hppa)", stderr);
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c
index 222a6d6fe00..bc7e826529e 100644
--- a/gcc/haifa-sched.c
+++ b/gcc/haifa-sched.c
@@ -190,8 +190,8 @@ static int target_units = 0;
static int issue_rate;
-#ifndef MACHINE_issue_rate
-#define get_issue_rate() (1)
+#ifndef ISSUE_RATE
+#define ISSUE_RATE 1
#endif
/* sched_debug_count is used for debugging the scheduler by limiting
@@ -8460,7 +8460,7 @@ schedule_insns (dump_file)
}
/* initialize issue_rate */
- issue_rate = get_issue_rate ();
+ issue_rate = ISSUE_RATE;
/* do the splitting first for all blocks */
for (b = 0; b < n_basic_blocks; b++)