summaryrefslogtreecommitdiff
path: root/gcc/haifa-sched.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-29 16:53:46 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-29 16:53:46 +0000
commit61512c5442ccf60ad078d8af1569d69fcbf487f3 (patch)
treec2e12f795a472858ce2552909194ce2d7ba71110 /gcc/haifa-sched.c
parent13dab7c335d1bb8b420cffd6181b5046aae9740e (diff)
downloadgcc-61512c5442ccf60ad078d8af1569d69fcbf487f3.tar.gz
* haifa-sched.c (schedule_block): Do not count USE and CLOBBER
insns against the issue rate. * sched-deps.c (sched_create_groups_for_libcalls): New function. (sched_analyze): Use it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54004 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/haifa-sched.c')
-rw-r--r--gcc/haifa-sched.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c
index 63a31352a5b..a03b9b346b4 100644
--- a/gcc/haifa-sched.c
+++ b/gcc/haifa-sched.c
@@ -2179,7 +2179,10 @@ schedule_block (b, rgn_n_insns)
can_issue_more =
(*targetm.sched.variable_issue) (sched_dump, sched_verbose,
insn, can_issue_more);
- else
+ /* A naked CLOBBER or USE generates no instruction, so do
+ not count them against the issue rate. */
+ else if (GET_CODE (PATTERN (insn)) != USE
+ && GET_CODE (PATTERN (insn)) != CLOBBER)
can_issue_more--;
schedule_insn (insn, &ready, clock_var);