[all-commits] [llvm/llvm-project] ccbbb4: [Sample-PGO] Emit FS discriminators only when -fde...

xur-llvm via All-commits all-commits at lists.llvm.org
Fri Feb 25 09:41:41 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ccbbb4f6c716ba14d98cceff08a81777228ab4d1
      https://github.com/llvm/llvm-project/commit/ccbbb4f6c716ba14d98cceff08a81777228ab4d1
  Author: Rong Xu <xur at google.com>
  Date:   2022-02-25 (Fri, 25 Feb 2022)

  Changed paths:
    M llvm/lib/CodeGen/MIRFSDiscriminator.cpp
    M llvm/test/CodeGen/X86/fsafdo_test1.ll
    A llvm/test/CodeGen/X86/fsafdo_test4.ll

  Log Message:
  -----------
  [Sample-PGO] Emit FS discriminators only when -fdebug-info-for-profiling is set

IR level addDiscriminator pass is guarded by DebugInfoForProfiling
(set by option -fdebug-info-for-profiling).
This patch syncs the logic for the MIR and IR level implementations.

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




More information about the All-commits mailing list