* tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
scaling happen.
From-SVN: r278879
+2019-11-30 Jan Hubicka <hubicka@ucw.cz>
+
+ * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
+ scaling happen.
+
2019-11-30 Jan Hubicka <hubicka@ucw.cz>
* cgraph.h (symtab_node): Add symver flag.
gimple_stmt_iterator gsi;
int todo = 0;
cgraph_node *node = cgraph_node::get (current_function_decl);
+ /* Same scaling is also done by ipa_merge_profiles. */
profile_count num = node->count;
profile_count den = ENTRY_BLOCK_PTR_FOR_FN (cfun)->count;
bool scale = num.initialized_p () && !(num == den);
}
}
if (scale)
- compute_function_frequency ();
+ {
+ update_max_bb_count ();
+ compute_function_frequency ();
+ }
if (current_loops
&& (todo & TODO_cleanup_cfg))