mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
733b0981cf
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
9 lines
623 B
Plaintext
9 lines
623 B
Plaintext
RUN: llvm-profdata merge -o %t.0.profdata %S/Inputs/IR_profile.proftext
|
|
RUN: llvm-profdata show -o %t.0.proftext -all-functions -text %t.0.profdata
|
|
RUN: diff %t.0.proftext %S/Inputs/IR_profile.proftext
|
|
RUN: llvm-profdata merge -o %t.1.profdata %t.0.proftext
|
|
RUN: llvm-profdata show -o %t.1.proftext -all-functions -text %t.1.profdata
|
|
RUN: diff %t.1.proftext %S/Inputs/IR_profile.proftext
|
|
RUN: llvm-profdata merge --sample --binary -output=%t.2.profdata %S/Inputs/sample-profile.proftext
|
|
RUN: llvm-profdata merge --sample --text -output=%t.2.proftext %t.2.profdata
|
|
RUN: diff %t.2.proftext %S/Inputs/sample-profile.proftext |