[all-commits] [llvm/llvm-project] c761fe: Revert "[SampleFDO][NFC] Refactor SampleProfile.cpp"

Mehdi Amini via All-commits all-commits at lists.llvm.org
Tue Feb 16 14:13:11 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c761fe77bdca26eb1451b6bb5070599a696711cb
      https://github.com/llvm/llvm-project/commit/c761fe77bdca26eb1451b6bb5070599a696711cb
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2021-02-16 (Tue, 16 Feb 2021)

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

  Log Message:
  -----------
  Revert "[SampleFDO][NFC] Refactor SampleProfile.cpp"

This reverts commit 310b35304cdf5a230c042904655583c5532d3e91.
The build is broken with -DBUILD_SHARED_LIBS=ON :

lib/ProfileData/CMakeFiles/LLVMProfileData.dir/SampleProfileLoaderBaseUtil.cpp.o: In function `llvm::sampleprofutil::callsiteIsHot(llvm::sampleprof::FunctionSamples const*, llvm::ProfileSummaryInfo*, bool)':
SampleProfileLoaderBaseUtil.cpp:(.text._ZN4llvm14sampleprofutil13callsiteIsHotEPKNS_10sampleprof15FunctionSamplesEPNS_18ProfileSummaryInfoEb+0x1a): undefined reference to `llvm::ProfileSummaryInfo::isColdCount(unsigned long) const'
SampleProfileLoaderBaseUtil.cpp:(.text._ZN4llvm14sampleprofutil13callsiteIsHotEPKNS_10sampleprof15FunctionSamplesEPNS_18ProfileSummaryInfoEb+0x28): undefined reference to `llvm::ProfileSummaryInfo::isHotCount(unsigned long) const'
...




More information about the All-commits mailing list