aboutsummaryrefslogtreecommitdiff
path: root/gcc/alias.c
diff options
context:
space:
mode:
authorJim Wilson <wilson@redhat.com>2001-09-07 23:25:01 +0000
committerJim Wilson <wilson@gcc.gnu.org>2001-09-07 16:25:01 -0700
commit43fe47ca785b524496e2082eddfd00b50b68b281 (patch)
tree944330803f51ba791ebf2256c7196203c46cdef1 /gcc/alias.c
parent177b41ebf31068a9423718b445d08181295d8c87 (diff)
downloadgcc-43fe47ca785b524496e2082eddfd00b50b68b281.zip
gcc-43fe47ca785b524496e2082eddfd00b50b68b281.tar.gz
gcc-43fe47ca785b524496e2082eddfd00b50b68b281.tar.bz2
re PR rtl-optimization/3783 (gcc3.0/ia64 ICE on linux kernel file fs/ufs/super.c)
Fix for PR 3783. * alias.c (clear_reg_alias_info): New. * flow.c (attempt_auto_inc): Call clear_reg_alias_info. * rtl.h (clear_reg_alias_info): Declare. From-SVN: r45482
Diffstat (limited to 'gcc/alias.c')
-rw-r--r--gcc/alias.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/alias.c b/gcc/alias.c
index d8e9d42..8c6ad5f 100644
--- a/gcc/alias.c
+++ b/gcc/alias.c
@@ -960,6 +960,20 @@ record_base_value (regno, val, invariant)
reg_base_value[regno] = find_base_value (val);
}
+/* Clear alias info for a register. This is used if an RTL transformation
+ changes the value of a register. This is used in flow by AUTO_INC_DEC
+ optimizations. We don't need to clear reg_base_value, since flow only
+ changes the offset. */
+
+void
+clear_reg_alias_info (rtx reg)
+{
+ int regno = REGNO (reg);
+
+ if (regno < reg_known_value_size)
+ reg_known_value[regno] = reg;
+}
+
/* Returns a canonical version of X, from the point of view alias
analysis. (For example, if X is a MEM whose address is a register,
and the register has a known value (say a SYMBOL_REF), then a MEM