[PATCH] D38094: Separate the logic when handling indirect calls in SamplePGO ThinLTO compile phase and other phases.

Dehao Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 20 12:27:11 PDT 2017


danielcdh created this revision.
Herald added subscribers: inglorion, mehdi_amini, sanjoy.

In SamplePGO ThinLTO compile phase, we will not invoke ICP as it may introduce confusion to the 2nd annotation. This patch extracted that logic and makes it clearer before profile annotation. In the mean time, we need to make function importing process both inlined callsites as well as not promoted indirect callsites.


https://reviews.llvm.org/D38094

Files:
  include/llvm/ProfileData/SampleProf.h
  include/llvm/Transforms/SampleProfile.h
  lib/Passes/PassBuilder.cpp
  lib/Transforms/IPO/SampleProfile.cpp
  test/Transforms/SampleProfile/Inputs/import.prof
  test/Transforms/SampleProfile/import.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38094.116053.patch
Type: text/x-patch
Size: 15877 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170920/53a17ca0/attachment.bin>


More information about the llvm-commits mailing list