[PATCH] D114400: [SampleFDO] Compute BFI if the sample loader changes BPI in FSAFDO

Rong Xu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 22 14:32:25 PST 2021


xur created this revision.
xur added reviewers: wmi, wenlei, hoy.
Herald added subscribers: pengfei, hiraditya.
xur requested review of this revision.
Herald added a project: LLVM.

The sample loader changes the branch probability but not BFI. Here we force a recompute of BFI if the branch probabilities are changed.
No performance changes with google benchmarks.

      

This patch also registers FSAFDO MIR passes probably.


https://reviews.llvm.org/D114400

Files:
  llvm/lib/CodeGen/CodeGen.cpp
  llvm/lib/CodeGen/MIRSampleProfile.cpp
  llvm/test/CodeGen/X86/fsafdo_test3.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114400.389044.patch
Type: text/x-patch
Size: 15661 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211122/881dc158/attachment.bin>


More information about the llvm-commits mailing list