From bbc05e6aeb41b2636b429c5341e8260723ff29a3 Mon Sep 17 00:00:00 2001 From: Teresa Johnson Date: Thu, 2 Oct 2014 20:30:11 +0000 Subject: [PATCH] re PR middle-end/63422 (ICE in freqs_to_counts_path, at tree-ssa-threadupdate.c:981) 2014-10-01 Teresa Johnson PR middle-end/63422 * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove asserts to handle incoming insanities. From-SVN: r215822 --- gcc/ChangeLog | 6 ++++++ gcc/tree-ssa-threadupdate.c | 10 ++-------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e330d18ae4b..bbdef99c7e1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-10-02 Teresa Johnson + + PR middle-end/63422 + * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove + asserts to handle incoming insanities. + 2014-10-02 Martin Jambor PR tree-optimization/63375 diff --git a/gcc/tree-ssa-threadupdate.c b/gcc/tree-ssa-threadupdate.c index 2a8e005efd4..e3e77cf2558 100644 --- a/gcc/tree-ssa-threadupdate.c +++ b/gcc/tree-ssa-threadupdate.c @@ -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; } } -- 2.30.2