[0/5] IPA ICF: more clean up
mbox series

Message ID cover.1573636740.git.mliska@suse.cz
Headers show
Series
  • IPA ICF: more clean up
Related show

Message

Martin Liška Nov. 13, 2019, 9:19 a.m. UTC
Hi.

There's another series that brings yet another bunch of clean up
patches:

1) push/pop_cfun is overused, it is not needed
2) make dump reason more precise
3) Do not use custom hashing (add_expr, add_type) and use proper
   func_checker::hash_operand that can be improved for the future.
4) hash FIELD_DECL offset information to improve hashing
5) update statistics about really needed symbols during merging 

Patch can bootstrap on x86_64-linux-gnu and survives regression tests.

Ready to be installed?
Thanks,
Martin

Martin Liska (5):
  Do not overuse push/pop_cfun in IPA ICF.
  Update dump message in IPA ICF.
  Use func_checker::hash_operand for hashing of GIMPLE operands.
  Handle FIELD_DECL in IPA ICF.
  Update statistics about needed symbols in IPA ICF.

 gcc/ipa-icf-gimple.c |  10 +-
 gcc/ipa-icf-gimple.h |  11 ++
 gcc/ipa-icf.c        | 266 +++++++++----------------------------------
 gcc/ipa-icf.h        |  28 ++---
 4 files changed, 86 insertions(+), 229 deletions(-)