[PATCH] D18704: [PGO] Use a helper function to find all indirect call-sites
Rong Xu via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 1 11:10:27 PDT 2016
xur created this revision.
xur added reviewers: silvas, davidxl.
xur added subscribers: llvm-commits, xur.
This is another code cleanup suggested by Sean Silva in review of http://reviews.llvm.org/D17864.
It uses a helper function to find all the direct-calls-sites in a function. This makes the caller cleaner.
I also split the code into a separated file as this will be shared by another source file for indirect-call-promotion transformation (D17864).
Thanks,
-Rong
http://reviews.llvm.org/D18704
Files:
IndirectCallSiteVisitor.h
PGOInstrumentation.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18704.52396.patch
Type: text/x-patch
Size: 3713 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160401/15c6a93c/attachment.bin>
More information about the llvm-commits
mailing list