diff options
author | Richard Biener <rguenther@suse.de> | 2013-04-08 09:50:48 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2013-04-08 09:50:48 +0000 |
commit | 481be1c483a93aac58c69da18ab129874b34f4de (patch) | |
tree | 8471160907336e7e3addaaa20ae71b9fa9a32efe /gcc/alias.c | |
parent | 42109ab9406243dd6cb9e9d2c1ed83c0d1d02cb9 (diff) | |
download | gcc-481be1c483a93aac58c69da18ab129874b34f4de.zip gcc-481be1c483a93aac58c69da18ab129874b34f4de.tar.gz gcc-481be1c483a93aac58c69da18ab129874b34f4de.tar.bz2 |
alias.c (find_base_term): Fix thinko in previous change.
2013-04-08 Richard Biener <rguenther@suse.de>
* alias.c (find_base_term): Fix thinko in previous change.
From-SVN: r197572
Diffstat (limited to 'gcc/alias.c')
-rw-r--r-- | gcc/alias.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/alias.c b/gcc/alias.c index c9870ec..ef11c6a 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -1687,16 +1687,16 @@ find_base_term (rtx x) term is from a pointer or is a named object or a special address (like an argument or stack reference), then use it for the base term. */ - tmp1 = find_base_term (tmp1); - if (tmp1 != NULL_RTX + rtx base = find_base_term (tmp1); + if (base != NULL_RTX && ((REG_P (tmp1) && REG_POINTER (tmp1)) - || known_base_value_p (tmp1))) - return tmp1; - tmp2 = find_base_term (tmp2); - if (tmp2 != NULL_RTX + || known_base_value_p (base))) + return base; + base = find_base_term (tmp2); + if (base != NULL_RTX && ((REG_P (tmp2) && REG_POINTER (tmp2)) - || known_base_value_p (tmp2))) - return tmp2; + || known_base_value_p (base))) + return base; /* We could not determine which of the two operands was the base register and which was the index. So we can determine |