> gcc/ChangeLog: > * auto-profile.cc: Include lto-streamer.h and data-streamer.h. > (timestamp_info_map): Change value to std::pair<int, int> instead of > int. > (autofdo_source_profile::read): Call std::make_pair for populating > value field of timestamp_info_map. > (afdo_annotate_cfg): Use it->second.second instead of it->second for > assigning value to node->tp_first_run. > (clone_function_p): New function. > (clone_timestamp_map): New std::map for storing clone's name and > tp_first_run which are materialized after auto-profile pass. > (adjust_tp_first_run_generate_summary): Likewise. > (adjust_tp_first_run_write_summary): Likewise. > (adjust_tp_first_run_read_summary): Likewise. > (adjust_tp_first_run): Likewise. > (class pass_ipa_adjust_tp_first_run): New pass. > (make_pass_ipa_adjust_tp_first_run): New function. > * lto-section-in.cc: Add entry "ipa_adjust_tp_first_run". > * lto-streamer.h (enum lto_section_type): Add entry for > LTO_section_ipa_adjust_tp_first_run. > * passes.def: Add entry for pass_ipa_adjust_tp_first_run. > * tree-pass.h (make_pass_ipa_adjust_tp_first_run): Declare. OK
Honza
