forked from OSchip/llvm-project
[PGO] Do not attach VP metadata if value count at site is 0 [NFC]
llvm-svn: 266335
This commit is contained in:
parent
b77365b595
commit
4f1e8c94bf
|
@ -636,6 +636,8 @@ void annotateValueSite(Module &M, Instruction &Inst,
|
|||
InstrProfValueKind ValueKind, uint32_t SiteIdx,
|
||||
uint32_t MaxMDCount) {
|
||||
uint32_t NV = InstrProfR.getNumValueDataForSite(ValueKind, SiteIdx);
|
||||
if (!NV)
|
||||
return;
|
||||
|
||||
uint64_t Sum = 0;
|
||||
std::unique_ptr<InstrProfValueData[]> VD =
|
||||
|
|
Loading…
Reference in New Issue