]> granicus.if.org Git - llvm/commit
Annotate VP prof on indirect call if it is ICPed in the profiled binary.
authorDehao Chen <dehao@google.com>
Thu, 5 Oct 2017 20:15:29 +0000 (20:15 +0000)
committerDehao Chen <dehao@google.com>
Thu, 5 Oct 2017 20:15:29 +0000 (20:15 +0000)
commit0b7b0d3b7e4dee37acaae13b97bf10f27367cf19
treec2e99e53316a96103b7f603ed22e9957111c6a12
parent49e2cc7d53a9f1ab8e175932e073df73cbc11645
Annotate VP prof on indirect call if it is ICPed in the profiled binary.

Summary: In SamplePGO, when an indirect call is promoted in the profiled binary, before profile annotation, it will be promoted and inlined. For the original indirect call, the current implementation will not mark VP profile on it. This is an issue when profile becomes stale. This patch annotates VP prof on indirect calls during annotation.

Reviewers: tejohnson

Reviewed By: tejohnson

Subscribers: sanjoy, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315016 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/CallSite.h
lib/Transforms/IPO/SampleProfile.cpp
test/Transforms/SampleProfile/Inputs/indirect-call.prof
test/Transforms/SampleProfile/indirect-call.ll