]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
var-tracking.c (add_stores): Return instead of asserting if old and new values for...
authorJoseph Myers <joseph@codesourcery.com>
Mon, 30 Jun 2014 20:53:33 +0000 (21:53 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Mon, 30 Jun 2014 20:53:33 +0000 (21:53 +0100)
* var-tracking.c (add_stores): Return instead of asserting if old
and new values for conditional store are the same.

From-SVN: r212178

gcc/ChangeLog
gcc/var-tracking.c

index 671fc6ce072447953e785398a437d7a3fa03bf78..b7b8012a3cbf741162025acf90fa099ec6089209 100644 (file)
@@ -1,3 +1,8 @@
+2014-06-30  Joseph Myers  <joseph@codesourcery.com>
+
+       * var-tracking.c (add_stores): Return instead of asserting if old
+       and new values for conditional store are the same.
+
 2014-06-30  Richard Henderson  <rth@redhat.com>
 
        PR rtl-opt/61608
index ece149250ff02da4dada7063e34d6c05cb90d95c..bf9735a3d55ea42a6c7aeac451d5074c42033217 100644 (file)
@@ -6016,7 +6016,8 @@ add_stores (rtx loc, const_rtx expr, void *cuip)
     {
       cselib_val *oval = cselib_lookup (oloc, GET_MODE (oloc), 0, VOIDmode);
 
-      gcc_assert (oval != v);
+      if (oval == v)
+       return;
       gcc_assert (REG_P (oloc) || MEM_P (oloc));
 
       if (oval && !cselib_preserved_value_p (oval))