[PATCH] D30989: [PGO] Refactor the code for value profile annotation
David Li via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 15 10:44:18 PDT 2017
davidxl accepted this revision.
davidxl added a comment.
This revision is now accepted and ready to land.
lgtm
================
Comment at: lib/Transforms/Instrumentation/PGOInstrumentation.cpp:389
NumOfPGOSelectInsts += SIVisitor.getNumOfSelectInsts();
- IndirectCallSites = findIndirectCallSites(Func);
+ ValueSites.resize(IPVK_Last + 1);
+ ValueSites[IPVK_IndirectCallTarget] = findIndirectCallSites(Func);
----------------
use the constructor to set the size?
https://reviews.llvm.org/D30989
More information about the llvm-commits
mailing list