[all-commits] [llvm/llvm-project] daa2a5: [TRE] Adjust function entry count when using instr...
Mircea Trofin via All-commits
all-commits at lists.llvm.org
Mon Jun 23 08:07:53 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: daa2a587cc01c5656deecda7f768fed0afc1e515
https://github.com/llvm/llvm-project/commit/daa2a587cc01c5656deecda7f768fed0afc1e515
Author: Mircea Trofin <mtrofin at google.com>
Date: 2025-06-23 (Mon, 23 Jun 2025)
Changed paths:
M llvm/include/llvm/Passes/PassBuilder.h
M llvm/include/llvm/Transforms/Scalar/TailRecursionElimination.h
M llvm/lib/Passes/PassBuilderPipelines.cpp
M llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp
A llvm/test/Transforms/TailCallElim/entry-count-adjustment.ll
Log Message:
-----------
[TRE] Adjust function entry count when using instrumented profiles (#143987)
The entry count of a function needs to be updated after a callsite is elided by TRE: before elision, the entry count accounted for the recursive call at that callsite. After TRE, we need to remove that callsite's contribution.
This patch enables this for instrumented profiling cases because, there, we know the function entry count captured entries before TRE. We cannot currently address this for sample-based (because we don't know whether this function was TRE-ed in the binary that donated samples)
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