[llvm-branch-commits] [llvm] [StaticDataLayout] Factor out a helper function for section prefix eligibility and use it in both optimizer and codegen (PR #162348)
Mingming Liu via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Oct 7 14:45:30 PDT 2025
================
@@ -75,7 +75,7 @@ bool StaticDataAnnotator::runOnModule(Module &M) {
bool Changed = false;
for (auto &GV : M.globals()) {
- if (GV.isDeclarationForLinker())
+ if (!llvm::memprof::IsAnnotationOK(GV))
----------------
mingmingl-llvm wrote:
yeah I agree.
I think this PR is more of 'NFCI' (non functional change intended) or no user-visible change intended. I removed the 'NFC' tag so (unfamiliar) readers won't get (unintentionally) fooled..
https://github.com/llvm/llvm-project/pull/162348
More information about the llvm-branch-commits
mailing list