diff options
author | Mark Mitchell <mark@codesourcery.com> | 2000-03-31 08:57:54 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-03-31 08:57:54 +0000 |
commit | c13e8210479fd194128fed8742d8a491b686a404 (patch) | |
tree | af3dfff0cabf48c3e9e50b45078202db74413026 /gcc/cse.c | |
parent | cca8e0ff228daba37afc9279721c1fa04faa0269 (diff) | |
download | gcc-c13e8210479fd194128fed8742d8a491b686a404.zip gcc-c13e8210479fd194128fed8742d8a491b686a404.tar.gz gcc-c13e8210479fd194128fed8742d8a491b686a404.tar.bz2 |
Makefile.in (emit-rtl.o): Depend on HASHTAB_H.
* Makefile.in (emit-rtl.o): Depend on HASHTAB_H.
* alias.c (reg_known_value): Add comments.
(init_alias_analysis): Likewise.
* cse.c (exp_equiv_p): CONST_INTs are equal iff they have the same
address.
(cse_basic_block): Fix typo in comment.
* emit-rtl.c: Include hashtab.h.
(const_int_htab): New variable.
(const_int_htab_hash): New function.
(const_int_htab_eq): Likewise.
(rtx_htab_mark_1): Likewise.
(rtx_htab_mark): Likewise.
(gen_rtx_CONST_INT): Cache all CONST_INTs.
(unshare_all_rtx): Fix formatting.
(init_emit_once): Initialize const_int_htab.
* rtl.c (rtx_equal_p): CONST_INTs are equal iff they have the same
address.
* rtl.texi: Document the fact that all CONST_INTs with the same
value are shared.
From-SVN: r32844
Diffstat (limited to 'gcc/cse.c')
-rw-r--r-- | gcc/cse.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -2367,10 +2367,8 @@ exp_equiv_p (x, y, validate, equal_values) { case PC: case CC0: - return x == y; - case CONST_INT: - return INTVAL (x) == INTVAL (y); + return x == y; case LABEL_REF: return XEXP (x, 0) == XEXP (y, 0); @@ -6898,7 +6896,7 @@ cse_basic_block (from, to, next_branch, around_loop) /* 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 + in the count since there may be more of 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. |