hanchenye-llvm-project/llvm/test/tools/llvm-profdata
Wenlei He 5adace352d [AutoFDO] Make call targets order deterministic for sample profile
Summary:
StringMap is used for storing call target to frequency map for AutoFDO. However the iterating order of StringMap is non-deterministic, which leads to non-determinism in AutoFDO profile output. Now new API getSortedCallTargets and SortCallTargets are added for deterministic ordering and output.

Roundtrip test for text profile and binary profile is added.

Reviewers: wmi, davidxl, danielcdh

Subscribers: hiraditya, mgrang, llvm-commits, twoh

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D66191

llvm-svn: 369440
2019-08-20 20:52:00 +00:00
..
Inputs [AutoFDO] Make call targets order deterministic for sample profile 2019-08-20 20:52:00 +00:00
c-general.test
compact-sample.proftext [llvm-profdata] Profile dump for compact binary format 2019-08-13 17:56:08 +00:00
compat.proftext
count-mismatch.proftext
csprof-dump.test
cutoff.test
gcc-gcov-sample-profile.test
general.proftext
hash-mismatch.proftext
inline-samples.test
input-dir.test
input-filenames.test
instr-remap.test
invalid-profdata.test
lit.local.cfg
memop-size-prof.proftext
merge_empty_profile.test
multiple-inputs.test
multiple-profdata-merge.test
nocompress.test
overflow-instr.test
overflow-sample.test
overlap.test
overlap_cs.test
overlap_vp.test
raw-32-bits-be.test
raw-32-bits-le.test
raw-64-bits-be.test
raw-64-bits-le.test
raw-magic-but-no-header.test
raw-two-profiles.test
roundtrip.test [AutoFDO] Make call targets order deterministic for sample profile 2019-08-20 20:52:00 +00:00
same-filename.test [llvm-profdata] Don't make the output overwrite the input file. 2019-07-09 09:57:45 +00:00
sample-profile-basic.test [AutoFDO] Make call targets order deterministic for sample profile 2019-08-20 20:52:00 +00:00
sample-remap.test
show-instr-level.test
text-dump.test
text-format-errors.test
threaded-count-mismatch.test
value-prof.proftext
weight-instr.test
weight-sample.test