[llvm] [PGO] Fix malformed raw profile test (PR #206738)
Yaxun Liu via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 30 06:52:45 PDT 2026
https://github.com/yxsamliu created https://github.com/llvm/llvm-project/pull/206738
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
>From b1c489d9303e246e09f077f7072eca61d77987d1 Mon Sep 17 00:00:00 2001
From: "Yaxun (Sam) Liu" <yaxun.liu at amd.com>
Date: Tue, 30 Jun 2026 09:34:30 -0400
Subject: [PATCH] [PGO] Fix malformed raw profile test
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
---
.../llvm-profdata/malformed-not-space-for-another-header.test | 1 -
1 file changed, 1 deletion(-)
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
More information about the llvm-commits
mailing list