commit | 086912bdd2d9be1522da17d74f4559642f17dfbc | [log] [tgz] |
---|---|---|
author | Rong Xu <xur@google.com> | Tue Feb 16 10:53:38 2021 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Feb 19 02:54:00 2021 -0800 |
tree | 4fb551b02e370f84ca7cdc24c53ef436880e1fc4 | |
parent | 2fba1ce3d7ec5c0e2df8c332536f683af830e6fc [diff] |
[SampleFDO][NFC] Refactor SampleProfile.cpp Refactor SampleProfile.cpp to use the core code in CodeGen. The main changes are: (1) Move SampleProfileLoaderBaseImpl class to a header file. (2) Split SampleCoverageTracker to a head file and a cpp file. (3) Move the common codes (common options and callsiteIsHot()) to the common cpp file. Differential Revision: https://reviews.llvm.org/D96455 GitOrigin-RevId: 310b35304cdf5a230c042904655583c5532d3e91