OSDN Git Service

[PGO] Refactor the code for value profile annotation
authorRong Xu <xur@google.com>
Wed, 15 Mar 2017 18:23:39 +0000 (18:23 +0000)
committerRong Xu <xur@google.com>
Wed, 15 Mar 2017 18:23:39 +0000 (18:23 +0000)
commit1d95032b0c1e26d88176e3802477894f2f9debe6
tree05bfbc7291b995e8f984e6df61beb8226cd03b8c
parent17931c83704a5e4c4b2b15bcdaa5e0a6925442c5
[PGO] Refactor the code for value profile annotation

This patch refactors the code for value profile annotation to facilitate
of adding other kind of value profiles.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297870 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/PGOInstrumentation.cpp