Do not want to use BFI to get profile count for sample pgo
authorDehao Chen <dehao@google.com>
Thu, 3 Aug 2017 17:11:41 +0000 (17:11 +0000)
committerDehao Chen <dehao@google.com>
Thu, 3 Aug 2017 17:11:41 +0000 (17:11 +0000)
commitf58df39529060196b8ead812521b3a98ccd8abc3
tree42d6bf4dfe41909cf5cd0f38c58523b7b0ea9cc0
parent99d0ab38bc187f644900faf514109bafa4d060c3
Do not want to use BFI to get profile count for sample pgo

Summary: For SamplePGO, we already record the callsite count in the call instruction itself. So we do not want to use BFI to get profile count as it is less accurate.

Reviewers: tejohnson, davidxl, eraman

Reviewed By: eraman

Subscribers: sanjoy, llvm-commits, mehdi_amini

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

llvm-svn: 309964
llvm/lib/Analysis/ProfileSummaryInfo.cpp
llvm/test/Bitcode/Inputs/thinlto-function-summary-callgraph-sample-profile-summary.ll [new file with mode: 0644]
llvm/test/Bitcode/thinlto-function-summary-callgraph-sample-profile-summary.ll
llvm/unittests/Analysis/ProfileSummaryInfoTest.cpp