diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2015-03-01 23:22:26 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2015-03-01 22:22:26 +0000 |
commit | a8d9381738d229b9ebad9a91bc2cd211e368c750 (patch) | |
tree | bca4388d8754c5208003420a930bf8c221bf2c88 /gcc/ipa-icf.h | |
parent | f7f64d539a9d97d9f52bd408bec309233831e36c (diff) | |
download | gcc-a8d9381738d229b9ebad9a91bc2cd211e368c750.zip gcc-a8d9381738d229b9ebad9a91bc2cd211e368c750.tar.gz gcc-a8d9381738d229b9ebad9a91bc2cd211e368c750.tar.bz2 |
ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
* ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
(sem_item::add_expr): New function.
(sem_function::hash_stmt): Handle operands of most statements.
(sem_variable::get_hash): Hash the actual constructor.
* ipa-icf.h (sem_item): Add add_expr.
(sem_function): Update prototype of hash_stmt
From-SVN: r221092
Diffstat (limited to 'gcc/ipa-icf.h')
-rw-r--r-- | gcc/ipa-icf.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/ipa-icf.h b/gcc/ipa-icf.h index bf01cf0..3e5d458 100644 --- a/gcc/ipa-icf.h +++ b/gcc/ipa-icf.h @@ -241,6 +241,8 @@ public: protected: /* Cached, once calculated hash for the item. */ hashval_t hash; + /* Accumulate to HSTATE a hash of constructor expression EXP. */ + static void add_expr (const_tree exp, inchash::hash &hstate); private: /* Initialize internal data structures. Bitmap STACK is used for @@ -290,7 +292,7 @@ public: } /* Improve accumulated hash for HSTATE based on a gimple statement STMT. */ - void hash_stmt (inchash::hash *inchash, gimple stmt); + void hash_stmt (gimple stmt, inchash::hash &inchash); /* Return true if polymorphic comparison must be processed. */ bool compare_polymorphic_p (void); |