[llvm] [clang] Disable PGO instrumentation on naked function (PR #75224)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 12 10:40:42 PST 2023


================
@@ -1783,6 +1783,8 @@ static bool skipPGOUse(const Function &F) {
 static bool skipPGOGen(const Function &F) {
   if (skipPGOUse(F))
     return true;
+  if (F.hasFnAttribute(llvm::Attribute::Naked))
----------------
MaskRay wrote:

Makes sense. Similar to https://reviews.llvm.org/D149721

https://github.com/llvm/llvm-project/pull/75224


More information about the llvm-commits mailing list