[all-commits] [llvm/llvm-project] bf1138: [SampleFDO] Recompute BFI if the sample loader cha...

xur-llvm via All-commits all-commits at lists.llvm.org
Tue Nov 23 13:42:44 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bf1138491a2ba12dce0c3ff2ad6a18f093428539
      https://github.com/llvm/llvm-project/commit/bf1138491a2ba12dce0c3ff2ad6a18f093428539
  Author: Rong Xu <xur at google.com>
  Date:   2021-11-23 (Tue, 23 Nov 2021)

  Changed paths:
    M llvm/lib/CodeGen/CodeGen.cpp
    M llvm/lib/CodeGen/MIRSampleProfile.cpp
    A llvm/test/CodeGen/X86/fsafdo_test3.ll

  Log Message:
  -----------
  [SampleFDO] Recompute BFI if the sample loader changes BPI

The MIR sample loader changes the branch probability but not BFI.
Here we force a recompute of BFI if the branch probabilities are
changed.

Also register the MIR FSAFDO passes properly.

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




More information about the All-commits mailing list