Commit a5e2beb9 by Martin Liska Committed by Martin Liska

Do not overuse push/pop_cfun in IPA ICF.

2019-11-13  Martin Liska  <mliska@suse.cz>

	* ipa-icf.c (sem_function::equals_private): Do not overuse
	push/pop_cfun functions.

From-SVN: r278141
parent 83a49336
2019-11-13 Martin Liska <mliska@suse.cz> 2019-11-13 Martin Liska <mliska@suse.cz>
* ipa-icf.c (sem_function::equals_private): Do not overuse
push/pop_cfun functions.
2019-11-13 Martin Liska <mliska@suse.cz>
* common.opt: Document change of -fdbg-cnt option. * common.opt: Document change of -fdbg-cnt option.
* dbgcnt.c (DEBUG_COUNTER): Remove. * dbgcnt.c (DEBUG_COUNTER): Remove.
(dbg_cnt_is_enabled): Remove. (dbg_cnt_is_enabled): Remove.
...@@ -877,14 +877,9 @@ sem_function::equals_private (sem_item *item) ...@@ -877,14 +877,9 @@ sem_function::equals_private (sem_item *item)
} }
/* Checking all basic blocks. */ /* Checking all basic blocks. */
push_cfun (DECL_STRUCT_FUNCTION (decl));
for (unsigned i = 0; i < bb_sorted.length (); ++i) for (unsigned i = 0; i < bb_sorted.length (); ++i)
if(!m_checker->compare_bb (bb_sorted[i], m_compared_func->bb_sorted[i])) if(!m_checker->compare_bb (bb_sorted[i], m_compared_func->bb_sorted[i]))
{ return return_false ();
pop_cfun ();
return return_false ();
}
pop_cfun ();
auto_vec <int> bb_dict; auto_vec <int> bb_dict;
......
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