alias.c (find_base_term): Fix thinko in previous change.
authorRichard Biener <rguenther@suse.de>
Mon, 8 Apr 2013 09:50:48 +0000 (09:50 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 8 Apr 2013 09:50:48 +0000 (09:50 +0000)
2013-04-08  Richard Biener  <rguenther@suse.de>

* alias.c (find_base_term): Fix thinko in previous change.

From-SVN: r197572

gcc/ChangeLog
gcc/alias.c

index 31c760a868fdb1a9862dcd345f799c170ec93a05..dca24bfe236b5ce510020fc5414f0a5fdf5ece01 100644 (file)
@@ -1,3 +1,7 @@
+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>
 
        * tree-loop-distribution.c (const_with_all_bytes_same): New function.
index c9870ecff3651110ae68f1a8b23ffe221ff7706d..ef11c6a2b9ce39e04b51757a792eebfe017ab996 100644 (file)
@@ -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