[all-commits] [llvm/llvm-project] 792a7b: [profcheck] Option to inject distinct small weight...

Mircea Trofin via All-commits all-commits at lists.llvm.org
Wed Sep 24 11:40:58 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 792a7bbd99ba7fafabc8c03cf9f3c29e729858c0
      https://github.com/llvm/llvm-project/commit/792a7bbd99ba7fafabc8c03cf9f3c29e729858c0
  Author: Mircea Trofin <mtrofin at google.com>
  Date:   2025-09-24 (Wed, 24 Sep 2025)

  Changed paths:
    M llvm/lib/Transforms/Utils/ProfileVerify.cpp
    A llvm/test/Transforms/PGOProfile/profcheck-synthetic.ll

  Log Message:
  -----------
  [profcheck] Option to inject distinct small weights (#159644)

There are cases where the easiest way to regression-test a profile change is to add `!prof`​ metadata, with small numbers as to simplify manual verification. To ensure coverage, this (the inserting) may become tedious. This patch makes `prof-inject`​ do that for us, if so opted in.

The list of weights used is a bunch of primes,  used as a circular buffer.

Issue #147390



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