diff options
| author | Wei Mi <wmi@google.com> | 2019-08-23 19:05:30 +0000 |
|---|---|---|
| committer | Wei Mi <wmi@google.com> | 2019-08-23 19:05:30 +0000 |
| commit | be9073249e346759f39ca90cb1df80c3b02ca41c (patch) | |
| tree | 7f4eb9931134294bb233bf7749e1be76d982059a /llvm/test/tools/llvm-profdata | |
| parent | b4051e57b104d17ed4f5be21e3c54f80d170b97f (diff) | |
| download | bcm5719-llvm-be9073249e346759f39ca90cb1df80c3b02ca41c.tar.gz bcm5719-llvm-be9073249e346759f39ca90cb1df80c3b02ca41c.zip | |
[SampleFDO] Add ExtBinary format to support extension of binary profile.
This is a patch split from https://reviews.llvm.org/D66374. It tries to add
a new format of profile called ExtBinary. The format adds a section header
table to the profile and organize the profile in sections, so the future
extension like adding a new section or extending an existing section will be
easier while keeping backward compatiblity feasible.
Differential Revision: https://reviews.llvm.org/D66513
llvm-svn: 369798
Diffstat (limited to 'llvm/test/tools/llvm-profdata')
| -rw-r--r-- | llvm/test/tools/llvm-profdata/roundtrip.test | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/llvm/test/tools/llvm-profdata/roundtrip.test b/llvm/test/tools/llvm-profdata/roundtrip.test index 00abc40b87e..d5469be56fe 100644 --- a/llvm/test/tools/llvm-profdata/roundtrip.test +++ b/llvm/test/tools/llvm-profdata/roundtrip.test @@ -6,4 +6,13 @@ 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
\ No newline at end of file +RUN: diff %t.2.proftext %S/Inputs/sample-profile.proftext +# Round trip from text --> extbinary --> text +RUN: llvm-profdata merge --sample --extbinary -output=%t.3.profdata %S/Inputs/sample-profile.proftext +RUN: llvm-profdata merge --sample --text -output=%t.3.proftext %t.3.profdata +RUN: diff %t.3.proftext %S/Inputs/sample-profile.proftext +# Round trip from text --> binary --> extbinary --> text +RUN: llvm-profdata merge --sample --binary -output=%t.4.profdata %S/Inputs/sample-profile.proftext +RUN: llvm-profdata merge --sample --extbinary -output=%t.5.profdata %t.4.profdata +RUN: llvm-profdata merge --sample --text -output=%t.4.proftext %t.5.profdata +RUN: diff %t.4.proftext %S/Inputs/sample-profile.proftext |

