Fix the roundtrip test under llvm-profdata

Summary:
According to the comments, we want to convert the profile into two binary formats, and then into the md5text format.
We seems to have ignored the intermediate files.
This patch uses them to complete the full roundtrips.

Reviewers: wmi, wenlei

Reviewed By: wmi

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81202
This commit is contained in:
Xun Li 2020-06-05 08:51:54 -07:00 committed by Wenlei He
parent 4d8c00c059
commit 45f58bf469
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ RUN: diff -b %t.4.proftext %S/Inputs/sample-profile.proftext
# Trip from text --> compbinary --> md5text
# Compare the two md5 texts
RUN: llvm-profdata merge --sample --compbinary -output=%t.6.profdata %S/Inputs/sample-profile.proftext
RUN: llvm-profdata merge --sample --text -output=%t.6.proftext %S/Inputs/sample-profile.proftext
RUN: llvm-profdata merge --sample --text -output=%t.6.proftext %t.6.profdata
RUN: llvm-profdata merge --sample --extbinary -use-md5 -output=%t.7.profdata %S/Inputs/sample-profile.proftext
RUN: llvm-profdata merge --sample --text -output=%t.7.proftext %S/Inputs/sample-profile.proftext
RUN: llvm-profdata merge --sample --text -output=%t.7.proftext %t.7.profdata
RUN: diff -b %t.6.proftext %t.7.proftext