[clang] [llvm] [Offload][PGO] Fix PGO on NVPTX targets (PR #143568)
Kevin Sala Penades via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 23 12:21:00 PDT 2025
================
@@ -947,11 +954,18 @@ bool InstrLowerer::lower() {
if (!ContainsProfiling && !CoverageNamesVar)
return MadeChange;
+ // Cached info for generating delayed offset calculations
+ // This is only relevant on NVPTX targets
+ SmallVector<Function *> Kernels;
+ SmallVector<const InstrProfCntrInstBase *> ValueSites;
----------------
kevinsala wrote:
Correct. But I was referring to your comment from June, where you mentioned a way to split the initializers and avoid the initialization function implemented by Ethan. I don't see how that way could be implemented in the case I mention above, where we need the addresses.
https://github.com/llvm/llvm-project/pull/143568
More information about the cfe-commits
mailing list