diff options
author | Martin Liska <mliska@suse.cz> | 2019-11-14 09:35:25 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2019-11-14 08:35:25 +0000 |
commit | a37f58f506e436bdf8f4f5be4afbf2d246538058 (patch) | |
tree | d38650119a98e2f0c28c37b44b54bf5daa1344a2 /gcc/tree-switch-conversion.c | |
parent | 5d0152bf59a626fd01b64c95bb8d91d890d93820 (diff) | |
download | gcc-a37f58f506e436bdf8f4f5be4afbf2d246538058.zip gcc-a37f58f506e436bdf8f4f5be4afbf2d246538058.tar.gz gcc-a37f58f506e436bdf8f4f5be4afbf2d246538058.tar.bz2 |
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
Diffstat (limited to 'gcc/tree-switch-conversion.c')
0 files changed, 0 insertions, 0 deletions