[llvm-bugs] [Bug 51624] New: "llvm-profdata merge" doesn't work in 13.0
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Aug 25 08:13:06 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=51624
Bug ID: 51624
Summary: "llvm-profdata merge" doesn't work in 13.0
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: bero at lindev.ch
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org
Doing something along the lines of
export LLVM_PROFILE_FILE=xyz-%p.profile.d
export CFLAGS="-O2 -fprofile-instr-generate"
export CXXFLAGS="-O2 -fprofile-instr-generate"
./configure
make
# Run the generated binaries in some expected ways, e.g. "make check"
llvm-profdata merge --output=xyz.profile xyz-*.profile.d
consistently (obviously with PIDs varying) results in
warning: xyz-670250.profile.d: malformed instrumentation profile data
warning: xyz-670257.profile.d: malformed instrumentation profile data
error: no profile can be merged
The *.profile.d files look ok at a first glance, and "file" recognizes them as
"LLVM raw profile data, version 7".
Looks like only "llvm-profdata merge" is broken, using -fprofile-instr-use=<any
of the individual files> seems to be ok.
This is a regression from 12.x.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210825/11a8a0f6/attachment.html>
More information about the llvm-bugs
mailing list