[flang-commits] [clang] [flang] [Flang][Driver]Add support for option '-fpseudo-probe-for-profiling' in flang (PR #205046)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Mon Jun 22 04:17:13 PDT 2026
================
@@ -995,7 +995,13 @@ void CodeGenAction::runOptimizationPipeline(llvm::raw_pwrite_stream &os) {
opts.SampleProfileFile, "", opts.ProfileRemappingFile,
opts.MemoryProfileUsePath, llvm::PGOOptions::SampleUse,
llvm::PGOOptions::NoCSAction, llvm::PGOOptions::ColdFuncOpt::Default,
- opts.DebugInfoForProfiling, /*PseudoProbeForProfiling=*/false);
+ opts.DebugInfoForProfiling, opts.PseudoProbeForProfiling);
+ } else if (opts.PseudoProbeForProfiling) {
----------------
tblah wrote:
Are these really supposed to be `else if`? `-fdebug-info-for-profiling -fpseudo-probe-for-profiling` drops pseudo-probe emission. That doesn't look right to me, although I don't know much about these profiling flags.
https://github.com/llvm/llvm-project/pull/205046
More information about the flang-commits
mailing list