[llvm] [PGO] Fix malformed raw profile test (PR #206738)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 30 06:59:03 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-pgo
Author: Yaxun (Sam) Liu (yxsamliu)
<details>
<summary>Changes</summary>
A hand-written raw profile test still wrote one extra word in the data
record after the raw profile format changed.
Remove the extra word so the name section starts at the offset expected
by the reader. This keeps the test focused on the trailing garbage that
should report that there is not enough space for another header.
Buildbot failure: https://github.com/llvm/llvm-project/pull/190708#issuecomment-4839831651
---
Full diff: https://github.com/llvm/llvm-project/pull/206738.diff
1 Files Affected:
- (modified) llvm/test/tools/llvm-profdata/malformed-not-space-for-another-header.test (-1)
``````````diff
diff --git a/llvm/test/tools/llvm-profdata/malformed-not-space-for-another-header.test b/llvm/test/tools/llvm-profdata/malformed-not-space-for-another-header.test
index 1c8cc692f7a34..aec3323bd0fe9 100644
--- a/llvm/test/tools/llvm-profdata/malformed-not-space-for-another-header.test
+++ b/llvm/test/tools/llvm-profdata/malformed-not-space-for-another-header.test
@@ -57,7 +57,6 @@ RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
RUN: printf '\1\0\0\0\0\0\0\0' >> %t.profraw
RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
-RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
RUN: printf '\023\0\0\0\0\0\0\0' >> %t.profraw
RUN: printf '\3\0foo\0\0\0' >> %t.profraw
``````````
</details>
https://github.com/llvm/llvm-project/pull/206738
More information about the llvm-commits
mailing list