[PGO] Text format profile reader needs to clear the value profile
authorRong Xu <xur@google.com>
Fri, 3 Mar 2017 21:56:34 +0000 (21:56 +0000)
committerRong Xu <xur@google.com>
Fri, 3 Mar 2017 21:56:34 +0000 (21:56 +0000)
commit6241c2a6c11de3aef40704b02ff919f170252953
treeb350be9348299ec3ce05d12087c05eb8f474c711
parent6cf254034f05f90c7387913667afd12eceaeb4d9
[PGO] Text format profile reader needs to clear the value profile

Summary:
Reset the ValueData for each function to avoid using the ones in
the previous function.

Reviewers: davidxl

Reviewed By: davidxl

Subscribers: llvm-commits, xur

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

llvm-svn: 296916
llvm/include/llvm/ProfileData/InstrProf.h
llvm/lib/ProfileData/InstrProfReader.cpp
llvm/test/tools/llvm-profdata/value-prof.proftext