[llvm-profdata] Add overlap command to compute similarity b/w two profile files
authorRong Xu <xur@google.com>
Tue, 30 Apr 2019 21:19:12 +0000 (21:19 +0000)
committerRong Xu <xur@google.com>
Tue, 30 Apr 2019 21:19:12 +0000 (21:19 +0000)
commit998b97f6f1fef4082c3c8c4a5b9137753b93698f
tree4c3375cdfb6db1e77eedda821ecbe87bc8a10180
parent5642c3feb03d020dc06a62e3dc54f3206a97a391
[llvm-profdata] Add overlap command to compute similarity b/w two profile files

Add overlap functionality to llvm-profdata tool to compute the similarity
between two profile files.

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

llvm-svn: 359612
17 files changed:
llvm/docs/CommandGuide/llvm-profdata.rst
llvm/include/llvm/ProfileData/InstrProf.h
llvm/include/llvm/ProfileData/InstrProfReader.h
llvm/include/llvm/ProfileData/InstrProfWriter.h
llvm/lib/ProfileData/InstrProf.cpp
llvm/lib/ProfileData/InstrProfReader.cpp
llvm/lib/ProfileData/InstrProfWriter.cpp
llvm/test/tools/llvm-profdata/Inputs/overlap_1.proftext [new file with mode: 0644]
llvm/test/tools/llvm-profdata/Inputs/overlap_1_cs.proftext [new file with mode: 0644]
llvm/test/tools/llvm-profdata/Inputs/overlap_1_vp.proftext [new file with mode: 0644]
llvm/test/tools/llvm-profdata/Inputs/overlap_2.proftext [new file with mode: 0644]
llvm/test/tools/llvm-profdata/Inputs/overlap_2_cs.proftext [new file with mode: 0644]
llvm/test/tools/llvm-profdata/Inputs/overlap_2_vp.proftext [new file with mode: 0644]
llvm/test/tools/llvm-profdata/overlap.test [new file with mode: 0644]
llvm/test/tools/llvm-profdata/overlap_cs.test [new file with mode: 0644]
llvm/test/tools/llvm-profdata/overlap_vp.test [new file with mode: 0644]
llvm/tools/llvm-profdata/llvm-profdata.cpp