From 8c3785c43d490d4f234e21c9dee6bb1bb8d1dbdf Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Wed, 4 Dec 2019 11:13:49 +0100 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/tree-switch-conversion.c | 1 + 2 files changed, 6 insertions(+) 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; } -- 2.30.2