From c13e8210479fd194128fed8742d8a491b686a404 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Fri, 31 Mar 2000 08:57:54 +0000 Subject: 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 --- gcc/alias.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'gcc/alias.c') 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 () { -- cgit v1.1