[all-commits] [llvm/llvm-project] c56058: [CSSPGO] Skip dangling probe value when computing ...

WenleiHe via All-commits all-commits at lists.llvm.org
Thu Apr 1 22:56:05 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c5605857bb77a6f2f08304dcc5e35e0637851ffe
      https://github.com/llvm/llvm-project/commit/c5605857bb77a6f2f08304dcc5e35e0637851ffe
  Author: Wenlei He <aktoon at gmail.com>
  Date:   2021-04-01 (Thu, 01 Apr 2021)

  Changed paths:
    M llvm/lib/ProfileData/ProfileSummaryBuilder.cpp

  Log Message:
  -----------
  [CSSPGO] Skip dangling probe value when computing profile summary

Recently we switched to use InvalidProbeCount = UINT64_MAX (instead of 0) to represent dangling probe, but UINT64_MAX is not excluded when computing profile summary. This caused profile summary to produce incorrect hot/cold threshold. The change fixed it by excluding UINT64_MAX from summary builder.

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




More information about the All-commits mailing list