re PR middle-end/63422 (ICE in freqs_to_counts_path, at tree-ssa-threadupdate.c:981)
authorTeresa Johnson <tejohnson@google.com>
Thu, 2 Oct 2014 20:30:11 +0000 (20:30 +0000)
committerTeresa Johnson <tejohnson@gcc.gnu.org>
Thu, 2 Oct 2014 20:30:11 +0000 (20:30 +0000)
2014-10-01  Teresa Johnson  <tejohnson@google.com>

PR middle-end/63422
* tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
asserts to handle incoming insanities.

From-SVN: r215822

gcc/ChangeLog
gcc/tree-ssa-threadupdate.c

index e330d18ae4b4c1fb299cb4e65f7078e5d4241d2b..bbdef99c7e1e26ba9edd526010f53d35a9d44453 100644 (file)
@@ -1,3 +1,9 @@
+2014-10-02  Teresa Johnson  <tejohnson@google.com>
+
+       PR middle-end/63422
+       * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
+       asserts to handle incoming insanities.
+
 2014-10-02  Martin Jambor  <mjambor@suse.cz>
 
        PR tree-optimization/63375
index 2a8e005efd4f06b0738cd2560240746f67ee249a..e3e77cf25586287b60c16c87b5c412211ecd0dc5 100644 (file)
@@ -977,20 +977,14 @@ freqs_to_counts_path (struct redirection_data *rd)
   edge ein;
   edge_iterator ei;
   FOR_EACH_EDGE (ein, ei, e->dest->preds)
-    {
-      gcc_assert (!ein->count);
-      ein->count = EDGE_FREQUENCY (ein);
-    }
+    ein->count = EDGE_FREQUENCY (ein);
 
   for (unsigned int i = 1; i < path->length (); i++)
     {
       edge epath = (*path)[i]->e;
-      gcc_assert (!epath->count);
       edge esucc;
       FOR_EACH_EDGE (esucc, ei, epath->src->succs)
-        {
-          esucc->count = EDGE_FREQUENCY (esucc);
-        }
+        esucc->count = EDGE_FREQUENCY (esucc);
       epath->src->count = epath->src->frequency;
     }
 }