[all-commits] [llvm/llvm-project] 310b35: [SampleFDO][NFC] Refactor SampleProfile.cpp

xur-llvm via All-commits all-commits at lists.llvm.org
Tue Feb 16 11:20:03 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 310b35304cdf5a230c042904655583c5532d3e91
      https://github.com/llvm/llvm-project/commit/310b35304cdf5a230c042904655583c5532d3e91
  Author: Rong Xu <xur at google.com>
  Date:   2021-02-16 (Tue, 16 Feb 2021)

  Changed paths:
    A llvm/include/llvm/ProfileData/SampleProfileLoaderBaseImpl.h
    A llvm/include/llvm/ProfileData/SampleProfileLoaderBaseUtil.h
    M llvm/lib/ProfileData/CMakeLists.txt
    A llvm/lib/ProfileData/SampleProfileLoaderBaseUtil.cpp
    M llvm/lib/Transforms/IPO/SampleProfile.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list