[all-commits] [llvm/llvm-project] f28ee1: [CSSPGO] Update pseudo probe distribution factor b...

Hongtao Yu via All-commits all-commits at lists.llvm.org
Sun May 16 23:12:06 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f28ee1a2b386ad7fa7489cad55840e78849b4abf
      https://github.com/llvm/llvm-project/commit/f28ee1a2b386ad7fa7489cad55840e78849b4abf
  Author: Hongtao Yu <hoy at fb.com>
  Date:   2021-05-16 (Sun, 16 May 2021)

  Changed paths:
    M llvm/include/llvm/IR/PseudoProbe.h
    M llvm/include/llvm/Transforms/IPO/SampleProfileProbe.h
    M llvm/lib/Transforms/IPO/SampleProfileProbe.cpp
    A llvm/test/Transforms/SampleProfile/pseudo-probe-update-2.ll

  Log Message:
  -----------
  [CSSPGO] Update pseudo probe distribution factor based on inline context.

With prelink inlining, pseudo probes with same ID can come from different inline contexts. Such probes should not share samples and their factors should be fixed up separately.

I'm seeing 0.3% speedup for SPEC2017 overall. Benchmark 631.deepsjeng_s benefits the most, about 4%.

Reviewed By: wenlei, wmi

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




More information about the All-commits mailing list