re PR rtl-optimization/48170 (ICE: in hoist_code, at gcse.c:4524 with -fgcse --param...
authorMaxim Kuvyrkov <maxim@codesourcery.com>
Fri, 18 Mar 2011 17:12:19 +0000 (17:12 +0000)
committerMaxim Kuvyrkov <mkuvyrkov@gcc.gnu.org>
Fri, 18 Mar 2011 17:12:19 +0000 (17:12 +0000)
PR rtl-optimization/48170
* gcse.c (hoist_code): Remove bogus asserts.

From-SVN: r171155

gcc/ChangeLog
gcc/gcse.c

index 200cce84e616aeb749e88b90f69f1548da8a5454..74b346492d51800cc4805a3d0ea19979eb2ba7e0 100644 (file)
@@ -1,3 +1,8 @@
+2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
+
+       PR rtl-optimization/48170
+       * gcse.c (hoist_code): Remove bogus asserts.
+
 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
 
        * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
index 27f7e8fe0346e9fae9db1b57f03be09b6d3b2450..c010d86491ac8410050467b128f9c12b6c37436b 100644 (file)
@@ -4520,9 +4520,7 @@ hoist_code (void)
                    {
                      /* An occurence might've been already deleted
                         while processing a dominator of BB.  */
-                     if (occr->deleted_p)
-                       gcc_assert (MAX_HOIST_DEPTH > 1);
-                     else
+                     if (!occr->deleted_p)
                        {
                          gcc_assert (NONDEBUG_INSN_P (occr->insn));
                          hoistable++;
@@ -4554,10 +4552,7 @@ hoist_code (void)
                  /* An occurence might've been already deleted
                     while processing a dominator of BB.  */
                  if (occr->deleted_p)
-                   {
-                     gcc_assert (MAX_HOIST_DEPTH > 1);
-                     continue;
-                   }
+                   continue;
                  gcc_assert (NONDEBUG_INSN_P (occr->insn));
 
                  max_distance = expr->max_distance;