[PATCH] D141446: [llvm-profdata] Add option to cap profile output size
William Junda Huang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 7 13:42:30 PST 2023
huangjd added inline comments.
================
Comment at: llvm/unittests/tools/llvm-profdata/OutputSizeLimitTest.cpp:197
+ for (size_t OutputSizeLimit : {490, 489, 488, 475, 474, 459, 400})
+ ASSERT_THAT_EXPECTED(
+ RunTest(Input1, OutputSizeLimit, llvm::sampleprof::SPF_Ext_Binary),
----------------
snehasish wrote:
> EXPECT_THAT_EXPECTED is probably better to continue with other test cases rather than aborting the test on the first failure?
The callee returns an error only if there's something wrong with I/O or profile reading, which is not expected to happen at all, so ASSERT is used properly here. This test checks the correctness of the sample map after size reduction, which is checked with EXPECT_EQ
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141446/new/
https://reviews.llvm.org/D141446
More information about the llvm-commits
mailing list