diff options
author | Jeff Law <law@gcc.gnu.org> | 1997-12-15 00:05:04 -0700 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1997-12-15 00:05:04 -0700 |
commit | 6d8ccdbbb20cdff710cd6977165bde1d763f6a40 (patch) | |
tree | fff0335d1435c9b6e70f06bebdd1a98b6cfd22bc /gcc/haifa-sched.c | |
parent | 7b8dd497414f0e8299a07ec4c2e81a78980b0bba (diff) | |
download | gcc-6d8ccdbbb20cdff710cd6977165bde1d763f6a40.zip gcc-6d8ccdbbb20cdff710cd6977165bde1d763f6a40.tar.gz gcc-6d8ccdbbb20cdff710cd6977165bde1d763f6a40.tar.bz2 |
Bring over changes from latest gcc-2.8 pre-release.
Mirror sched.c change into haifa-sched.c
From-SVN: r17097
Diffstat (limited to 'gcc/haifa-sched.c')
-rw-r--r-- | gcc/haifa-sched.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index ab8fbc2..b2545a2 100644 --- a/gcc/haifa-sched.c +++ b/gcc/haifa-sched.c @@ -884,17 +884,19 @@ remove_dependence (insn, elem) rtx prev, link; int found = 0; - for (prev = 0, link = LOG_LINKS (insn); link; - prev = link, link = XEXP (link, 1)) + for (prev = 0, link = LOG_LINKS (insn); link; link = XEXP (link, 1)) { if (XEXP (link, 0) == elem) { + RTX_INTEGRATED_P (link) = 1; if (prev) XEXP (prev, 1) = XEXP (link, 1); else LOG_LINKS (insn) = XEXP (link, 1); found = 1; } + else + prev = link; } if (!found) @@ -3210,6 +3212,9 @@ priority (insn) rtx next; int next_priority; + if (RTX_INTEGRATED_P (link)) + continue; + next = XEXP (link, 0); /* critical path is meaningful in block boundaries only */ |