Integrate that for IPA ICF.
authorMartin Liska <mliska@suse.cz>
Wed, 30 Oct 2019 12:01:25 +0000 (13:01 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 30 Oct 2019 12:01:25 +0000 (12:01 +0000)
commit8a319aa3c28ee2069a78cff6b09d1b2df21b0f3c
tree65ec8ca7e1080eb77d979cd99221befccc0887ef
parent7f4a8ee03d404c560dcb75ba684fd57ffbc77e85
Integrate that for IPA ICF.

2019-10-30  Martin Liska  <mliska@suse.cz>

* ipa-icf-gimple.c (func_checker::hash_operand): New.
(func_checker::compare_cst_or_decl): Remove handling
of FIELD_DECL.
(func_checker::compare_operand): Transform to ...
(func_checker::operand_equal_p): ... this.
* ipa-icf-gimple.h (class func_checker): Add
operand_equal_p and hash_operand.
* ipa-icf.c (sem_function::equals_private): Fix
pushing and popping of cfun.

From-SVN: r277615
gcc/ChangeLog
gcc/ipa-icf-gimple.c
gcc/ipa-icf-gimple.h
gcc/ipa-icf.c