Commit 481be1c4 by Richard Biener Committed by Richard Biener

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
parent 42109ab9
2013-04-08 Richard Biener <rguenther@suse.de>
* alias.c (find_base_term): Fix thinko in previous change.
2013-04-08 Jakub Jelinek <jakub@redhat.com> 2013-04-08 Jakub Jelinek <jakub@redhat.com>
* tree-loop-distribution.c (const_with_all_bytes_same): New function. * tree-loop-distribution.c (const_with_all_bytes_same): New function.
......
...@@ -1687,16 +1687,16 @@ find_base_term (rtx x) ...@@ -1687,16 +1687,16 @@ find_base_term (rtx x)
term is from a pointer or is a named object or a special address 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 (like an argument or stack reference), then use it for the
base term. */ base term. */
tmp1 = find_base_term (tmp1); rtx base = find_base_term (tmp1);
if (tmp1 != NULL_RTX if (base != NULL_RTX
&& ((REG_P (tmp1) && REG_POINTER (tmp1)) && ((REG_P (tmp1) && REG_POINTER (tmp1))
|| known_base_value_p (tmp1))) || known_base_value_p (base)))
return tmp1; return base;
tmp2 = find_base_term (tmp2); base = find_base_term (tmp2);
if (tmp2 != NULL_RTX if (base != NULL_RTX
&& ((REG_P (tmp2) && REG_POINTER (tmp2)) && ((REG_P (tmp2) && REG_POINTER (tmp2))
|| known_base_value_p (tmp2))) || known_base_value_p (base)))
return tmp2; return base;
/* We could not determine which of the two operands was the /* We could not determine which of the two operands was the
base register and which was the index. So we can determine base register and which was the index. So we can determine
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment