Skip to content

Commit

Permalink
[SampleFDO][NFC] Refactor SampleProfile.cpp
Browse files Browse the repository at this point in the history
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
  • Loading branch information
xur-llvm committed Feb 16, 2021
1 parent cddc53e commit 310b353
Show file tree
Hide file tree
Showing 5 changed files with 1,161 additions and 992 deletions.
Loading

0 comments on commit 310b353

Please sign in to comment.