From: Martin Liska Date: Wed, 4 Dec 2019 10:13:49 +0000 (+0100) Subject: Initialize a BB count in switch lowering. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8c3785c43d490d4f234e21c9dee6bb1bb8d1dbdf;p=gcc.git Initialize a BB count in switch lowering. 2019-12-04 Martin Liska * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion): Initialize count of newly created BB. From-SVN: r278959 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7b518af4612..97e2c97a851 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-12-04 Martin Liska + + * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion): + Initialize count of newly created BB. + 2019-12-04 Jakub Jelinek PR tree-optimization/92734 diff --git a/gcc/tree-switch-conversion.c b/gcc/tree-switch-conversion.c index e741f56b520..4940038b125 100644 --- a/gcc/tree-switch-conversion.c +++ b/gcc/tree-switch-conversion.c @@ -1829,6 +1829,7 @@ switch_decision_tree::try_switch_expansion (vec &clusters) if (clusters[i]->get_type () != SIMPLE_CASE) { clusters[i]->m_case_bb = create_empty_bb (bb); + clusters[i]->m_case_bb->count = bb->count; clusters[i]->m_case_bb->loop_father = bb->loop_father; }