Commit 8c3785c4 by Martin Liska Committed by Martin Liska

Initialize a BB count in switch lowering.

2019-12-04  Martin Liska  <mliska@suse.cz>

	* tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
	Initialize count of newly created BB.

From-SVN: r278959
parent 526b4c71
2019-12-04 Martin Liska <mliska@suse.cz>
* tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
Initialize count of newly created BB.
2019-12-04 Jakub Jelinek <jakub@redhat.com> 2019-12-04 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/92734 PR tree-optimization/92734
...@@ -1829,6 +1829,7 @@ switch_decision_tree::try_switch_expansion (vec<cluster *> &clusters) ...@@ -1829,6 +1829,7 @@ switch_decision_tree::try_switch_expansion (vec<cluster *> &clusters)
if (clusters[i]->get_type () != SIMPLE_CASE) if (clusters[i]->get_type () != SIMPLE_CASE)
{ {
clusters[i]->m_case_bb = create_empty_bb (bb); 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; clusters[i]->m_case_bb->loop_father = bb->loop_father;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment