[PATCH] D29040: Explicitly promote indirect calls before sample profile annotation.

Dehao Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 23 10:45:32 PST 2017


danielcdh created this revision.

In iterative sample pgo where profile is collected from PGOed binary, we may see indirect call targets promoted and inlined in the profile. Before profile annotation, we need to make this happen in order to annotate correctly on IR. This patch explicitly promotes these indirect calls and inlines them before profile annotation.


https://reviews.llvm.org/D29040

Files:
  include/llvm/Transforms/Instrumentation.h
  lib/Transforms/IPO/SampleProfile.cpp
  lib/Transforms/Instrumentation/IndirectCallPromotion.cpp
  test/Transforms/SampleProfile/Inputs/indirect-call.prof
  test/Transforms/SampleProfile/indirect-call.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29040.85425.patch
Type: text/x-patch
Size: 8768 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170123/f52894c8/attachment.bin>


More information about the llvm-commits mailing list