llvm-project/llvm/lib/Transforms
Teresa Johnson cd21a646f6 [ThinLTO] Perform profile-guided indirect call promotion
Summary:
To enable profile-guided indirect call promotion in ThinLTO mode, we
simply add call graph edges for each profitable target from the profile
to the summaries, then the summary-guided importing will consider the
callee for importing as usual.

Also we need to enable the indirect call promotion pass creation in the
PassManagerBuilder when PerformThinLTO=true (we are in the ThinLTO
backend), so that the newly imported functions are considered for
promotion in the backends.

The IC promotion profiles refer to callees by GUID, which required
adding GUIDs to the per-module VST in bitcode (and assigning them
valueIds similar to how they are assigned valueIds in the combined
index).

Reviewers: mehdi_amini, xur

Subscribers: mehdi_amini, davidxl, llvm-commits

Differential Revision: http://reviews.llvm.org/D21932

llvm-svn: 275707
2016-07-17 14:47:01 +00:00
..
Hello Add auto-exporting of symbols from tools so that plugins work on Windows 2016-05-26 11:16:43 +00:00
IPO [ThinLTO] Perform profile-guided indirect call promotion 2016-07-17 14:47:01 +00:00
InstCombine [InstCombine] allow X + signbit --> X ^ signbit for vector splats 2016-07-16 18:29:26 +00:00
Instrumentation Address review comments. 2016-07-17 14:46:58 +00:00
ObjCARC Apply clang-tidy's modernize-loop-convert to most of lib/Transforms. 2016-06-26 12:28:59 +00:00
Scalar [PM] Convert IVUsers analysis to new pass manager. 2016-07-16 22:51:33 +00:00
Utils Make processInstruction from LCSSA.cpp externally available. 2016-07-15 21:08:41 +00:00
Vectorize [LV] Swap A and B in interleaved access analysis (NFC) 2016-07-15 15:22:43 +00:00
CMakeLists.txt
LLVMBuild.txt