aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1993-12-22 11:41:47 -0800
committerJim Wilson <wilson@gcc.gnu.org>1993-12-22 11:41:47 -0800
commit489e2090a45b6bf41e6d74edc729f01e50298e3b (patch)
tree64a4a3ff1d25c93ce3bfcccab62f5a6ac3a74f22 /gcc
parent5b22bee86140aeccdb134c415f60aedfda60ca1d (diff)
downloadgcc-489e2090a45b6bf41e6d74edc729f01e50298e3b.zip
gcc-489e2090a45b6bf41e6d74edc729f01e50298e3b.tar.gz
gcc-489e2090a45b6bf41e6d74edc729f01e50298e3b.tar.bz2
(priority): Handle INSN_DELETED_P insns, in addition to
insns which were deleted by being turned into notes. From-SVN: r6272
Diffstat (limited to 'gcc')
-rw-r--r--gcc/sched.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/sched.c b/gcc/sched.c
index 78af990..205223c 100644
--- a/gcc/sched.c
+++ b/gcc/sched.c
@@ -1441,11 +1441,12 @@ priority (insn)
{
rtx x = XEXP (prev, 0);
- /* A dependence pointing to a note is always obsolete, because
- sched_analyze_insn will have created any necessary new dependences
- which replace it. Notes can be created when instructions are
- deleted by insn splitting, or by register allocation. */
- if (GET_CODE (x) == NOTE)
+ /* A dependence pointing to a note or deleted insn is always
+ obsolete, because sched_analyze_insn will have created any
+ necessary new dependences which replace it. Notes and deleted
+ insns can be created when instructions are deleted by insn
+ splitting, or by register allocation. */
+ if (GET_CODE (x) == NOTE || INSN_DELETED_P (x))
{
remove_dependence (insn, x);
continue;