]> granicus.if.org Git - clang/commit
[PGO] Move the instrumentation point closer to the value site.
authorBetul Buyukkurt <betulb@codeaurora.org>
Tue, 29 Mar 2016 20:44:09 +0000 (20:44 +0000)
committerBetul Buyukkurt <betulb@codeaurora.org>
Tue, 29 Mar 2016 20:44:09 +0000 (20:44 +0000)
commita393dca7ea5cdd5de3a8c4cb20c83d050df39793
tree7e5694ab046b06bdcd916a9a348ec2f9659b3297
parent4e812c1ad7fd5c49300c5ed2b8903c68cb9281b5
[PGO] Move the instrumentation point closer to the value site.

For terminator instructions, the value profiling instrumentation
happens in a basic block other than where the value site resides.
This CR moves the instrumentation point prior to the value site.
Mostly NFC.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@264783 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenPGO.cpp
test/Profile/c-indirect-call.c
test/Profile/cxx-indirect-call.cpp [new file with mode: 0644]