[PATCH] D101300: [CSSPGO] Explicitly disallow Binary and Compact Binary profile format for CSSPGO
Wenlei He via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 26 09:10:42 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb2d079379b6c: [CSSPGO] Explicitly disallow Binary and Compact Binary profile format for CSSPGO (authored by wenlei).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101300/new/
https://reviews.llvm.org/D101300
Files:
llvm/lib/ProfileData/SampleProfWriter.cpp
Index: llvm/lib/ProfileData/SampleProfWriter.cpp
===================================================================
--- llvm/lib/ProfileData/SampleProfWriter.cpp
+++ llvm/lib/ProfileData/SampleProfWriter.cpp
@@ -776,6 +776,11 @@
std::error_code EC;
std::unique_ptr<SampleProfileWriter> Writer;
+ // Currently only Text and Extended Binary format are supported for CSSPGO.
+ if ((FunctionSamples::ProfileIsCS || FunctionSamples::ProfileIsProbeBased) &&
+ (Format == SPF_Binary || Format == SPF_Compact_Binary))
+ return sampleprof_error::unsupported_writing_format;
+
if (Format == SPF_Binary)
Writer.reset(new SampleProfileWriterRawBinary(OS));
else if (Format == SPF_Ext_Binary)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101300.340550.patch
Type: text/x-patch
Size: 710 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210426/bb86a279/attachment.bin>
More information about the llvm-commits
mailing list