[PATCH] D117141: [CSSPGO] Print "csnested" instead of "preilnined" for SecFuncMetadata.
Hongtao Yu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 12 12:23:54 PST 2022
hoy created this revision.
Herald added subscribers: modimo, wenlei, hiraditya.
hoy requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Test Plan:
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D117141
Files:
llvm/lib/ProfileData/SampleProfReader.cpp
llvm/test/tools/llvm-profdata/cs-sample-nested-profile.test
Index: llvm/test/tools/llvm-profdata/cs-sample-nested-profile.test
===================================================================
--- llvm/test/tools/llvm-profdata/cs-sample-nested-profile.test
+++ llvm/test/tools/llvm-profdata/cs-sample-nested-profile.test
@@ -152,6 +152,4 @@
; PROBE-NEXT: !CFGChecksum: 563022570642068
-; PREINLINE: FunctionMetadata {{.*}} Flags: {attr,preinlined}
-
-
+; PREINLINE: FunctionMetadata {{.*}} Flags: {attr,csnested}
Index: llvm/lib/ProfileData/SampleProfReader.cpp
===================================================================
--- llvm/lib/ProfileData/SampleProfReader.cpp
+++ llvm/lib/ProfileData/SampleProfReader.cpp
@@ -1289,7 +1289,7 @@
if (hasSecFlag(Entry, SecFuncMetadataFlags::SecFlagHasAttribute))
Flags.append("attr,");
if (hasSecFlag(Entry, SecFuncMetadataFlags::SecFlagIsCSNested))
- Flags.append("preinlined,");
+ Flags.append("csnested,");
break;
default:
break;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117141.399420.patch
Type: text/x-patch
Size: 967 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220112/f1744561/attachment.bin>
More information about the llvm-commits
mailing list