]> granicus.if.org Git - llvm/commit
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)
commitb65c3a989fda1977369d5e617cac5cb3c2ac65a1
tree72fe83bc51495623d42dffb53a245abe0e8d6f97
parent5c7ada734838e784986e6e5b0e1ad78a79494822
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309964 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ProfileSummaryInfo.cpp
test/Bitcode/Inputs/thinlto-function-summary-callgraph-sample-profile-summary.ll [new file with mode: 0644]
test/Bitcode/thinlto-function-summary-callgraph-sample-profile-summary.ll
unittests/Analysis/ProfileSummaryInfoTest.cpp