diff options
author | Mark Mitchell <mark@markmitchell.com> | 1998-06-17 20:20:21 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1998-06-17 20:20:21 +0000 |
commit | 1d22a2c1640bb948e7db64d9908d920faf2993ff (patch) | |
tree | a62242f940ad1226ecbce193b9add4fdb4308b10 /gcc/cse.c | |
parent | 316d4b547e6de0d43de81011508fe23aa009b38a (diff) | |
download | gcc-1d22a2c1640bb948e7db64d9908d920faf2993ff.zip gcc-1d22a2c1640bb948e7db64d9908d920faf2993ff.tar.gz gcc-1d22a2c1640bb948e7db64d9908d920faf2993ff.tar.bz2 |
cse.c (cse_basic_block): Don't include NOTE insns in the count that is used to decide whether or not it...
* cse.c (cse_basic_block): Don't include NOTE insns in the count
that is used to decide whether or not it is time to erase the
equivalence table.
From-SVN: r20548
Diffstat (limited to 'gcc/cse.c')
-rw-r--r-- | gcc/cse.c | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -8507,16 +8507,20 @@ cse_basic_block (from, to, next_branch, around_loop) for (insn = from; insn != to; insn = NEXT_INSN (insn)) { - register enum rtx_code code; + register enum rtx_code code = GET_CODE (insn); int i; struct table_elt *p, *next; - /* If we have processed 1,000 insns, flush the hash table to avoid - extreme quadratic behavior. + /* If we have processed 1,000 insns, flush the hash table to + avoid extreme quadratic behavior. We must not include NOTEs + in the count since there may be more or them when generating + debugging information. If we clear the table at different + times, code generated with -g -O might be different than code + generated with -O but not -g. ??? This is a real kludge and needs to be done some other way. Perhaps for 2.9. */ - if (num_insns++ > 1000) + if (code != NOTE && num_insns++ > 1000) { for (i = 0; i < NBUCKETS; i++) for (p = table[i]; p; p = next) @@ -8555,7 +8559,6 @@ cse_basic_block (from, to, next_branch, around_loop) } } - code = GET_CODE (insn); if (GET_MODE (insn) == QImode) PUT_MODE (insn, VOIDmode); |