Use LineLocation instead of CallsiteLocation to index callsite profile.
authorDehao Chen <dehao@google.com>
Thu, 3 Mar 2016 18:09:32 +0000 (18:09 +0000)
committerDehao Chen <dehao@google.com>
Thu, 3 Mar 2016 18:09:32 +0000 (18:09 +0000)
commit57d1dda5581594ebdfabcb899bd224d037105a1a
tree6773547961c94d7a8218d714778f0e2086409f57
parent022afe253865ce20a9af2cb4dec31e10a3977aa6
Use LineLocation instead of CallsiteLocation to index callsite profile.

Summary: With discriminator, LineLocation can uniquely identify a callsite without the need to specifying callee name. Remove Callee function name from the key, and put it in the value (FunctionSamples).

Reviewers: davidxl, dnovillo

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D17827

llvm-svn: 262634
llvm/include/llvm/ProfileData/SampleProf.h
llvm/include/llvm/ProfileData/SampleProfWriter.h
llvm/lib/ProfileData/SampleProf.cpp
llvm/lib/ProfileData/SampleProfReader.cpp
llvm/lib/ProfileData/SampleProfWriter.cpp
llvm/lib/Transforms/IPO/SampleProfile.cpp
llvm/unittests/ProfileData/SampleProfTest.cpp