[all-commits] [llvm/llvm-project] 0e3c55: [PGO] Add llvm.loop.estimated_trip_count metadata ...

Joel E. Denny via All-commits all-commits at lists.llvm.org
Thu Sep 11 12:55:40 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0e3c5566c0c62a56629a927d7de5e2594d2dbe7c
      https://github.com/llvm/llvm-project/commit/0e3c5566c0c62a56629a927d7de5e2594d2dbe7c
  Author: Joel E. Denny <jdenny.ornl at gmail.com>
  Date:   2025-09-11 (Thu, 11 Sep 2025)

  Changed paths:
    M llvm/docs/LangRef.rst
    M llvm/include/llvm/IR/Metadata.h
    M llvm/include/llvm/IR/ProfDataUtils.h
    M llvm/include/llvm/Transforms/Utils/LoopUtils.h
    M llvm/lib/IR/ProfDataUtils.cpp
    M llvm/lib/IR/Verifier.cpp
    M llvm/lib/Transforms/Utils/LoopUtils.cpp
    M llvm/test/Transforms/LoopVectorize/AArch64/check-prof-info.ll
    M llvm/test/Transforms/LoopVectorize/X86/pr81872.ll
    M llvm/test/Transforms/LoopVectorize/branch-weights.ll
    A llvm/test/Verifier/llvm.loop.estimated_trip_count.ll
    M llvm/unittests/Transforms/Utils/LoopUtilsTest.cpp

  Log Message:
  -----------
  [PGO] Add llvm.loop.estimated_trip_count metadata (#152775)

This patch implements the `llvm.loop.estimated_trip_count` metadata
discussed in [[RFC] Fix Loop Transformations to Preserve Block
Frequencies](https://discourse.llvm.org/t/rfc-fix-loop-transformations-to-preserve-block-frequencies/85785).
As the RFC explains, that metadata enables future patches, such as PR
#128785, to fix block frequency issues without losing estimated trip
counts.



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