[all-commits] [llvm/llvm-project] bc1aa2: [SampleFDO] Support enabling sample loader pass in...

Lei Wang via All-commits all-commits at lists.llvm.org
Fri Nov 8 15:30:06 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bc1aa2863bd33756a5cc0b729792be0aabed67f4
      https://github.com/llvm/llvm-project/commit/bc1aa2863bd33756a5cc0b729792be0aabed67f4
  Author: Lei Wang <wlei at fb.com>
  Date:   2024-11-08 (Fri, 08 Nov 2024)

  Changed paths:
    M llvm/include/llvm/Transforms/IPO/SampleProfile.h
    M llvm/lib/Passes/PassBuilderPipelines.cpp
    M llvm/lib/Transforms/IPO/SampleProfile.cpp
    M llvm/test/Other/new-pm-pgo-O0.ll

  Log Message:
  -----------
  [SampleFDO] Support enabling sample loader pass in O0 mode (#113985)

Add support for enabling sample loader pass in O0 mode(under
`-fsample-profile-use`). This can help verify PGO raw profile count
quality or provide a more accurate performance proxy(predictor), as O0
mode has minimal or no compiler optimizations that might otherwise
impact profile count accuracy.
- Explicitly disable the sample loader inlining to ensure it only emits
sampling annotation.
- Use flattened profile for O0 mode.
- Add the pass after `AddDiscriminatorsPass` pass to work with
`-fdebug-info-for-profiling`.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list