diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-07 20:59:42 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-07 20:59:42 +0000 |
commit | a303ed8c9e913d8c7210bbd355def502ec1f0613 (patch) | |
tree | fb5308a92bae6e9a85b381d61fabd752851e1467 /gcc/alias.c | |
parent | d65dd253434629889d8055a66bdf54f0a1218dbc (diff) | |
download | gcc-a303ed8c9e913d8c7210bbd355def502ec1f0613.tar.gz |
* alias.c (find_base_value): Only use new_reg_base_value shortcut
if the register is set once.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61017 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/alias.c')
-rw-r--r-- | gcc/alias.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/alias.c b/gcc/alias.c index fee64b1e50d..960475be0c5 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -1,5 +1,6 @@ /* Alias analysis for GNU C - Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003 + Free Software Foundation, Inc. Contributed by John Carr (jfc@mit.edu). This file is part of GCC. @@ -787,7 +788,8 @@ find_base_value (src) { /* If we're inside init_alias_analysis, use new_reg_base_value to reduce the number of relaxation iterations. */ - if (new_reg_base_value && new_reg_base_value[regno]) + if (new_reg_base_value && new_reg_base_value[regno] + && REG_N_SETS (regno) == 1) return new_reg_base_value[regno]; if (reg_base_value[regno]) |