Petr Hosek
83302c8489
[profile] Fix profile merging with binary IDs
...
This fixes support for merging profiles which broke as a consequence
of e50a38840d
. The issue was missing
adjustment in merge logic to account for the binary IDs which are
now included in the raw profile just after header.
In addition, this change also:
* Includes the version in module signature that's used for merging
to avoid accidental attempts to merge incompatible profiles.
* Moves the binary IDs size field after version field in the header
as was suggested in the review.
Differential Revision: https://reviews.llvm.org/D107143
2021-07-30 18:54:27 -07:00
Gulfem Savrun Yeniceri
e50a38840d
[profile] Add binary id into profiles
...
This patch adds binary id into profiles to easily associate binaries
with the corresponding profiles. There is an RFC that discusses
the motivation, design and implementation in more detail:
https://lists.llvm.org/pipermail/llvm-dev/2021-June/151154.html
Differential Revision: https://reviews.llvm.org/D102039
2021-07-23 00:19:12 +00:00
Gulfem Savrun Yeniceri
fd895bc81b
Revert "[profile] Add binary id into profiles"
...
Revert "[profile] Change linkage type of a compiler-rt func"
This reverts commits f984ac2715
and
467c719124
because it broke some builds.
2021-07-21 19:15:18 +00:00
Gulfem Savrun Yeniceri
f984ac2715
[profile] Add binary id into profiles
...
This patch adds binary id into profiles to easily associate binaries
with the corresponding profiles. There is an RFC that discusses
the motivation, design and implementation in more detail:
https://lists.llvm.org/pipermail/llvm-dev/2021-June/151154.html
Differential Revision: https://reviews.llvm.org/D102039
2021-07-21 17:55:43 +00:00
Vedant Kumar
fd3d450061
[profile] Fourth fix for toolchains without zlib after D68351
...
Fix llvm/test/tools/llvm-profdata/nocompress.test, which I missed when
authoring D68351 because my toolchain is configured with zlib support.
2019-10-31 16:46:22 -07:00
David Blaikie
2bee7c68af
Commit missing/empty test file from r308789
...
llvm-svn: 308814
2017-07-22 00:24:20 +00:00
David Blaikie
b8cc0544d2
[ProfData] Detect if zlib is available
...
As discussed on [1], if the profile is compressed and llvm-profdata is not built with zlib support, the error message is not informative. Give a better error message if zlib is not available.
[1] http://lists.llvm.org/pipermail/llvm-dev/2017-July/115571.html
Reviewers: davidxl, dblaikie
Differential Revision: https://reviews.llvm.org/D35586
llvm-svn: 308789
2017-07-21 21:41:15 +00:00