[all-commits] [llvm/llvm-project] 8c68eb: [SampleFDO] Make FSDiscriminator flag part of func...

xur-llvm via All-commits all-commits at lists.llvm.org
Mon Jun 21 14:38:45 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8c68eb83065cc531fde28fc743a7278190f9eb65
      https://github.com/llvm/llvm-project/commit/8c68eb83065cc531fde28fc743a7278190f9eb65
  Author: Rong Xu <xur at google.com>
  Date:   2021-06-21 (Mon, 21 Jun 2021)

  Changed paths:
    M llvm/include/llvm/IR/DebugInfoMetadata.h
    M llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h
    M llvm/tools/llvm-profgen/ProfiledBinary.cpp

  Log Message:
  -----------
  [SampleFDO] Make FSDiscriminator flag part of function parameters

Add a parameter of IsFSDiscriminator to function
getBaseDiscriminatorFromDiscriminator().

This function currently checks the internal flag of
--enable-fs-discriminator. This is not good because we might
change the default value of the internal flag.

Note that we have a default parameter. This is just
because create_afdo_tool has a call-site to it.
I will remove the default parameter in a later patch.

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




More information about the All-commits mailing list