[all-commits] [llvm/llvm-project] 6745ff: [SampleFDO] New hierarchical discriminator for FS ...

xur-llvm via All-commits all-commits at lists.llvm.org
Wed Jun 2 10:33:35 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6745ffe4fa1c35778f88cffd671b7a7a936fb4d9
      https://github.com/llvm/llvm-project/commit/6745ffe4fa1c35778f88cffd671b7a7a936fb4d9
  Author: Rong Xu <xur at google.com>
  Date:   2021-06-02 (Wed, 02 Jun 2021)

  Changed paths:
    M llvm/include/llvm/CodeGen/MIRFSDiscriminator.h
    M llvm/include/llvm/CodeGen/Passes.h
    M llvm/include/llvm/IR/DebugInfoMetadata.h
    M llvm/include/llvm/ProfileData/SampleProf.h
    M llvm/include/llvm/ProfileData/SampleProfReader.h
    M llvm/include/llvm/Support/Discriminator.h
    M llvm/lib/CodeGen/MIRFSDiscriminator.cpp
    M llvm/lib/CodeGen/TargetPassConfig.cpp
    M llvm/lib/ProfileData/SampleProf.cpp
    M llvm/lib/ProfileData/SampleProfReader.cpp
    M llvm/lib/ProfileData/SampleProfWriter.cpp
    M llvm/lib/Target/X86/X86InsertPrefetch.cpp
    M llvm/lib/Transforms/IPO/SampleProfile.cpp
    A llvm/test/Transforms/SampleProfile/Inputs/fsafdo.extbinary.afdo
    A llvm/test/Transforms/SampleProfile/Inputs/fsafdo.prof
    A llvm/test/Transforms/SampleProfile/fsafdo_test.ll
    M llvm/unittests/ProfileData/SampleProfTest.cpp

  Log Message:
  -----------
  [SampleFDO] New hierarchical discriminator for FS SampleFDO (ProfileData part)

This patch was split from https://reviews.llvm.org/D102246
[SampleFDO] New hierarchical discriminator for Flow Sensitive SampleFDO
This is mainly for ProfileData part of change. It will load
FS Profile when such profile is detected. For an extbinary format profile,
create_llvm_prof tool will add a flag to profile summary section.
For other format profiles, the users need to use an internal option
(-profile-isfs) to tell the compiler that the profile uses FS discriminators.

This patch also simplified the bit API used by FS discriminators.

Differential Revision: https://reviews.llvm.org/D103041




More information about the All-commits mailing list