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.
Paths
| Differential D120536
[Sample-PGO] Emit FS discriminators only when -fdebug-info-for-profiling is set ClosedPublic Authored by xur on Feb 24 2022, 9:49 PM.
Details Summary 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.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Feb 24 2022, 9:51 PM Comment Actions Another way to do this is to check PGOOpt->DebugInfoForProfiling in TargetPassConfig before adding the passes. But since PGOOpt might not be set for some invocations (like in the unit tests). I would need to introduce I think the change is this patch is simpler. This revision was landed with ongoing or failed builds.Feb 25 2022, 9:41 AM Closed by commit rGccbbb4f6c716: [Sample-PGO] Emit FS discriminators only when -fdebug-info-for-profiling is set (authored by xur). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 411440 llvm/lib/CodeGen/MIRFSDiscriminator.cpp
llvm/test/CodeGen/X86/fsafdo_test1.ll
llvm/test/CodeGen/X86/fsafdo_test4.ll
|