diff options
author | Joseph Myers <joseph@codesourcery.com> | 2014-06-30 21:53:33 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2014-06-30 21:53:33 +0100 |
commit | 0ca59830558c865ea8329e387207d9682021f405 (patch) | |
tree | 71dfe9761664192223d86c4f189c86034f5d2398 /gcc | |
parent | 5796bf3422e2e7aa652020100c742fa6b26f40c9 (diff) | |
download | gcc-0ca59830558c865ea8329e387207d9682021f405.zip gcc-0ca59830558c865ea8329e387207d9682021f405.tar.gz gcc-0ca59830558c865ea8329e387207d9682021f405.tar.bz2 |
var-tracking.c (add_stores): Return instead of asserting if old and new values for conditional store are the...
* var-tracking.c (add_stores): Return instead of asserting if old
and new values for conditional store are the same.
From-SVN: r212178
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/var-tracking.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 671fc6c..b7b8012 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/var-tracking.c b/gcc/var-tracking.c index ece1492..bf9735a 100644 --- a/gcc/var-tracking.c +++ b/gcc/var-tracking.c @@ -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)) |