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/alias.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/alias.c')
-rw-r--r-- | gcc/alias.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/alias.c b/gcc/alias.c index 8d16330..d413ec2 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -153,8 +153,10 @@ static unsigned int reg_base_value_size; /* size of reg_base_value array */ after reload. */ static rtx *alias_invariant; -/* Vector indexed by N giving the initial (unchanging) value known - for pseudo-register N. */ +/* Vector indexed by N giving the initial (unchanging) value known for + pseudo-register N. This array is initialized in + init_alias_analysis, and does not change until end_alias_analysis + is called. */ rtx *reg_known_value; /* Indicates number of valid entries in reg_known_value. */ @@ -1570,6 +1572,9 @@ init_alias_once () alias_sets = splay_tree_new (splay_tree_compare_ints, 0, 0); } +/* Initialize the aliasing machinery. Initialize the REG_KNOWN_VALUE + array. */ + void init_alias_analysis () { |