aboutsummaryrefslogtreecommitdiff
path: root/gcc/haifa-sched.c
diff options
context:
space:
mode:
authorJeff Law <law@gcc.gnu.org>2002-05-29 10:53:46 -0600
committerJeff Law <law@gcc.gnu.org>2002-05-29 10:53:46 -0600
commit243e5500360c548ed93dd3f9fb06e7bf50420ec8 (patch)
treec2e12f795a472858ce2552909194ce2d7ba71110 /gcc/haifa-sched.c
parent45b1f7c746372e7dc48d79c9b5089ce12cbef1e5 (diff)
downloadgcc-243e5500360c548ed93dd3f9fb06e7bf50420ec8.zip
gcc-243e5500360c548ed93dd3f9fb06e7bf50420ec8.tar.gz
gcc-243e5500360c548ed93dd3f9fb06e7bf50420ec8.tar.bz2
haifa-sched.c (schedule_block): Do not count USE and CLOBBER insns against the issue rate.
* 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. From-SVN: r54004
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 63a3135..a03b9b3 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);