[PATCH] D54815: [ThinLTO] Add summary entries for index-based WPD
Teresa Johnson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 21 14:55:01 PST 2018
tejohnson created this revision.
tejohnson added a reviewer: pcc.
Herald added subscribers: arphaman, dexonsmith, steven_wu, eraman, inglorion, Prazek, mehdi_amini.
If LTOUnit splitting is disabled, the module summary analysis computes
the summary information necessary to perform single implementation
devirtualization during the thin link with the index and no IR. The
information collected from the regular LTO IR in the current hybrid WPD
algorithm is summarized, including:
1. For vtable definitions, record the function pointers and their offset
within the vtable initializer (subsumes the information collected from
IR by tryFindVirtualCallTargets).
2. A record for each type metadata summarizing the vtable definitions
decorated with that metadata (subsumes the TypeIdentiferMap collected
from IR).
Also added are the necessary bitcode records, and the corresponding
assembly support.
The index-based WPD will be sent as a follow-on.
Depends on https://reviews.llvm.org/D53890.
Repository:
rL LLVM
https://reviews.llvm.org/D54815
Files:
include/llvm/Bitcode/LLVMBitCodes.h
include/llvm/IR/ModuleSummaryIndex.h
lib/Analysis/ModuleSummaryAnalysis.cpp
lib/AsmParser/LLLexer.cpp
lib/AsmParser/LLParser.cpp
lib/AsmParser/LLParser.h
lib/AsmParser/LLToken.h
lib/Bitcode/Reader/BitcodeReader.cpp
lib/Bitcode/Writer/BitcodeWriter.cpp
lib/IR/AsmWriter.cpp
test/Assembler/thinlto-vtable-summary.ll
test/ThinLTO/X86/cfi-devirt.ll
tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54815.174987.patch
Type: text/x-patch
Size: 37625 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181121/b3471c4c/attachment.bin>
More information about the llvm-commits
mailing list