[all-commits] [llvm/llvm-project] 6fd5cc: [SampleFDO] Reapply: Refactor SampleProfile.cpp

xur-llvm via All-commits all-commits at lists.llvm.org
Tue Feb 16 16:54:00 PST 2021


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

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

  Log Message:
  -----------
  [SampleFDO] Reapply: Refactor SampleProfile.cpp

Reapply patch after fixing buildbot failure.
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