[all-commits] [llvm/llvm-project] d2500e: [pgo] add means to specify "unknown" MD_prof (#145...

Mircea Trofin via All-commits all-commits at lists.llvm.org
Mon Jun 30 16:57:32 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d2500e639b641b0cfdd1564cc6ff4705b118f10c
      https://github.com/llvm/llvm-project/commit/d2500e639b641b0cfdd1564cc6ff4705b118f10c
  Author: Mircea Trofin <mtrofin at google.com>
  Date:   2025-06-30 (Mon, 30 Jun 2025)

  Changed paths:
    M llvm/include/llvm/IR/ProfDataUtils.h
    M llvm/lib/IR/ProfDataUtils.cpp
    M llvm/lib/IR/Verifier.cpp
    M llvm/test/Verifier/branch-weight.ll

  Log Message:
  -----------
  [pgo] add means to specify "unknown" MD_prof (#145578)

This PR is part of https://discourse.llvm.org/t/rfc-profile-information-propagation-unittesting/73595

In a slight departure from the RFC, instead of a brand-new `MD_prof_unknown` kind, this adds a first operand to `MD_prof` metadata. This makes it easy to replace with valid metadata (only one `MD_prof`), otherwise sites inserting valid `MD_prof` would also have to check to remove the `unknown` one.

The patch just introduces the notion and fixes the verifier accordingly. Existing APIs working (esp. reading) `MD_prof` will be updated subsequently.



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