]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/ipa-icf-gimple.h
Use func_checker::hash_operand for hashing of GIMPLE operands.
authorMartin Liska <mliska@suse.cz>
Thu, 14 Nov 2019 08:35:25 +0000 (09:35 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 14 Nov 2019 08:35:25 +0000 (08:35 +0000)
commita37f58f506e436bdf8f4f5be4afbf2d246538058
treed38650119a98e2f0c28c37b44b54bf5daa1344a2
parent5d0152bf59a626fd01b64c95bb8d91d890d93820
Use func_checker::hash_operand for hashing of GIMPLE operands.

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

* ipa-icf-gimple.h (func_checker::func_checker): Add
default constructor.
* ipa-icf.c (sem_function::init): Make operand_equal_p
and hash_operand public.
(sem_item::add_expr): Remove.
(sem_item::add_type): Remove.
(sem_function::hash_stmt): Use m_checker for hashing
of GIMPLE statements.
(sem_function::parse): Init with checker.
(sem_variable::parse): Pass NULL as checker.
(sem_item_optimizer::parse_funcs_and_vars):
Pass checker to ::parse function.
(sem_item_optimizer::parse_nonsingleton_classes): Likewise.
(sem_variable::parse): New function.
(sem_variable::get_hash): Only return computed hash value.
(sem_variable::init): Initialize hash of a variable.
* ipa-icf.h: Remove add_expr, add_type and add func_checker
to couple of functions as a new argument.

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