summaryrefslogtreecommitdiff
path: root/gcc/haifa-sched.c
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>1999-10-25 01:34:16 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>1999-10-25 01:34:16 +0000
commit622766831c8923e66780de8a00dd54601203a957 (patch)
treead2517b1d127681b4f38486df57dc5feea41c067 /gcc/haifa-sched.c
parent29d99f2b25c2aa047ae7f47e304204994e1ead9b (diff)
downloadgcc-622766831c8923e66780de8a00dd54601203a957.tar.gz
* haifa-sched.c (schedule_insns): Don't assign LUIDs differently
depending on whether or not line-number notes are present. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30151 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/haifa-sched.c')
-rw-r--r--gcc/haifa-sched.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c
index 6fc172222a2..a92b73df476 100644
--- a/gcc/haifa-sched.c
+++ b/gcc/haifa-sched.c
@@ -6858,7 +6858,16 @@ schedule_insns (dump_file)
for (b = 0; b < n_basic_blocks; b++)
for (insn = BLOCK_HEAD (b);; insn = NEXT_INSN (insn))
{
- INSN_LUID (insn) = luid++;
+ INSN_LUID (insn) = luid;
+
+ /* Increment the next luid, unless this is a note. We don't
+ really need separate IDs for notes and we don't want to
+ schedule differently depending on whether or not there are
+ line-number notes, i.e., depending on whether or not we're
+ generating debugging information. */
+ if (GET_CODE (insn) != NOTE)
+ ++luid;
+
if (insn == BLOCK_END (b))
break;
}