[PGO] Add a functionality to always instrument the func entry BB
authorRong Xu <xur@google.com>
Fri, 26 Jun 2020 17:20:09 +0000 (10:20 -0700)
committerRong Xu <xur@google.com>
Fri, 26 Jun 2020 17:43:23 +0000 (10:43 -0700)
commitb4bceb94eeb3def8b164a0039b29379e83c00f0d
tree9563ca570681c689a69c89b35b2ed1d327b039a0
parent9c98ed9cd41fc6662a5e90037f25cb3a80658b74
[PGO] Add a functionality to always instrument the func entry BB

Add an option to always instrument function entry BB (default off)
Add an option to do atomically updates on the first counter in each
instrumented function.

Differential Revision: https://reviews.llvm.org/D82123
llvm/lib/Transforms/Instrumentation/CFGMST.h
llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
llvm/test/Transforms/PGOProfile/instr_entry_bb.ll [new file with mode: 0644]