Hello,

the patch sequence in this thread adds a call_summary class, which is
analogous to function_summary we already have but which gathers
information about call graph edges, rather than nodes.

The first patch implements the class itself, the second modifies
ipa-prop.[ch] and ipa-cp.c to use it instead of a vector indexed by
edge->uid and the third patch is a semi-related cleanup I spotted
along the way.

I have LTO-bootstrapped and tested the patches on x86_64-linux and
successfully LTO-built Mozilla Firefox with it.  I'll be grateful for
any comments, otherwise I'll queue the series for the next stage1.

Thanks,

Martin



Martin Jambor (3):
  call_summary to keep info about cgraph_edges
  Use call_summary in ipa-prop and ipa-cp
  Remove ipa_update_after_lto_read

 gcc/ipa-cp.c              |   4 -
 gcc/ipa-inline-analysis.c |   2 +-
 gcc/ipa-inline.c          |   3 -
 gcc/ipa-profile.c         |   2 +-
 gcc/ipa-prop.c            |  82 ++++--------------
 gcc/ipa-prop.h            |  60 +++++++++----
 gcc/symbol-summary.h      | 214 +++++++++++++++++++++++++++++++++++++++++++++-
 7 files changed, 273 insertions(+), 94 deletions(-)

-- 
2.11.1

Reply via email to