[all-commits] [llvm/llvm-project] 97e7ee: [InstrProf] Do not emit metadata for zero values w...

Aiden Grossman via All-commits all-commits at lists.llvm.org
Mon May 25 17:20:46 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 97e7ee26b2b3ea695c1966498ee572acd1e40418
      https://github.com/llvm/llvm-project/commit/97e7ee26b2b3ea695c1966498ee572acd1e40418
  Author: Aiden Grossman <aidengrossman at google.com>
  Date:   2026-05-26 (Tue, 26 May 2026)

  Changed paths:
    M llvm/lib/ProfileData/InstrProf.cpp
    A llvm/test/Transforms/PGOProfile/Inputs/indirect-call-vp-zeros.ll
    A llvm/test/Transforms/PGOProfile/indirect-call-vp-zeros.ll

  Log Message:
  -----------
  [InstrProf] Do not emit metadata for zero values with zero counts (#199380)

If we have a indirect call site with a profile that has VP information
for said callsite that only contains zero values with zero counts, we
would start to emit invalid profile information after
1d146967d51ba76b8379d9e12961aa23e5745701. VP metadata in this case is at
best redundant with BFI. So we restrict metadata emission to only if we
have a sufficient number of values for the VP metadata to be valid.



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