[PGO] Indirect-call profile annotation in IR level profiling
authorRong Xu <xur@google.com>
Wed, 10 Feb 2016 18:24:45 +0000 (18:24 +0000)
committerRong Xu <xur@google.com>
Wed, 10 Feb 2016 18:24:45 +0000 (18:24 +0000)
commit13b01dc8d9ec1fc46e8e75d52bec94e47136d291
tree5a9f47de9317f4088be9cd008e9efce2de8b74c0
parenta14364115e1fd07407299bcf633c2fc0344894b8
[PGO] Indirect-call profile annotation in IR level profiling

This patch reads the indirect-call value records in the profile and makes the
annotation in the indirect-call instruction. This is for IR level profile
instrumentation.

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

llvm-svn: 260400
llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
llvm/test/Transforms/PGOProfile/Inputs/indirect_call.proftext [new file with mode: 0644]
llvm/test/Transforms/PGOProfile/indirect_call_annotation.ll [new file with mode: 0644]