On 11/16/19 10:59 AM, luoxhu wrote:
Sorry that I don't quite understand your meanning here. I didn't grep the word "cgraph_edge_summary" in source code, do you mean add new structure
Hello. He wanted to write call_summary class and so you need something similar to ipa-sra.c:431. It's a data structure which associate a data to cgraph_edge. Is it understandable please? Martin
and related functions like "static ipa_sra_call_summaries *call_sums;" in ipa-sra.c and stream in/out in ipa_profile_write_summary/ipa_profile_read_summary? BTW, there is already an ipa_call_summaries in ipa-profile.c:355, feel apologetic as not familiar with many summaries in it, will take time to go through it: ipa_call_summary *s = ipa_call_summaries->get (edge);