================
@@ -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
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits