[llvm] [profcheck] Exclude `naked`, asm-only functions from profcheck (PR #168447)
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 20 08:31:17 PST 2025
================
@@ -65,11 +65,26 @@ class ProfileInjector {
ProfileInjector(Function &F, FunctionAnalysisManager &FAM) : F(F), FAM(FAM) {}
bool inject();
};
+
+bool isAsmOnly(const Function &F) {
+ if (!F.hasFnAttribute(Attribute::AttrKind::Naked))
+ return false;
+ for (const auto &BB : F)
----------------
mtrofin wrote:
I'll land with the expanded check, since the equivalence naked <-> asm only or other implications isn't clear. Easy to evolve later.
https://github.com/llvm/llvm-project/pull/168447
More information about the llvm-commits
mailing list