[PATCH] D118203: [CSSPGO] Adjust SampleContextFrameVector to be a shorter SmallVector
Hongtao Yu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 25 16:13:46 PST 2022
hoy created this revision.
Herald added subscribers: modimo, wenlei.
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/D118203
Files:
llvm/include/llvm/ProfileData/SampleProf.h
Index: llvm/include/llvm/ProfileData/SampleProf.h
===================================================================
--- llvm/include/llvm/ProfileData/SampleProf.h
+++ llvm/include/llvm/ProfileData/SampleProf.h
@@ -447,7 +447,7 @@
arg.Callsite.Discriminator);
}
-using SampleContextFrameVector = SmallVector<SampleContextFrame, 10>;
+using SampleContextFrameVector = SmallVector<SampleContextFrame, 1>;
using SampleContextFrames = ArrayRef<SampleContextFrame>;
struct SampleContextFrameHash {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118203.403067.patch
Type: text/x-patch
Size: 524 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220126/addf2646/attachment.bin>
More information about the llvm-commits
mailing list