diff options
author | Martin Liska <mliska@suse.cz> | 2019-11-13 14:48:25 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2019-11-13 13:48:25 +0000 |
commit | a5e2beb9474fc0bd4210926d75ec1101a3f11412 (patch) | |
tree | ee8430a0b37c9890304382e0945aae1b0e3cb970 | |
parent | 83a49336c63889db05b75d05fe5b2794071da7aa (diff) |
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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ipa-icf.c | 7 |
2 files changed, 6 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0075f318802..5375cd5f7fa 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 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. * dbgcnt.c (DEBUG_COUNTER): Remove. (dbg_cnt_is_enabled): Remove. diff --git a/gcc/ipa-icf.c b/gcc/ipa-icf.c index 10aa4b76463..53e387403c8 100644 --- a/gcc/ipa-icf.c +++ b/gcc/ipa-icf.c @@ -877,14 +877,9 @@ sem_function::equals_private (sem_item *item) } /* Checking all basic blocks. */ - push_cfun (DECL_STRUCT_FUNCTION (decl)); for (unsigned i = 0; i < bb_sorted.length (); ++i) if(!m_checker->compare_bb (bb_sorted[i], m_compared_func->bb_sorted[i])) - { - pop_cfun (); - return return_false (); - } - pop_cfun (); + return return_false (); auto_vec <int> bb_dict; |