[PATCH] D55153: [ThinLTO] Implement index-based WPD

Teresa Johnson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 30 16:26:01 PST 2018


tejohnson created this revision.
tejohnson added a reviewer: pcc.
Herald added subscribers: dang, arphaman, dexonsmith, steven_wu, eraman, inglorion, mehdi_amini.

This patch adds support to the WholeProgramDevirt pass to perform
index-based WPD, which is invoked from ThinLTO during the thin link.

The ThinLTO backend (WPD import phase) behaves the same regardless of
whether the WPD decisions were made with the index-based or (the
existing) IR-based analysis.

Depends on D54815 <https://reviews.llvm.org/D54815>.


Repository:
  rL LLVM

https://reviews.llvm.org/D55153

Files:
  include/llvm/IR/ModuleSummaryIndex.h
  include/llvm/Transforms/IPO/WholeProgramDevirt.h
  lib/LTO/LTO.cpp
  lib/Transforms/IPO/WholeProgramDevirt.cpp
  test/ThinLTO/X86/cfi-devirt.ll
  test/ThinLTO/X86/devirt.ll
  test/ThinLTO/X86/nodevirt-nonpromoted-typeid.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55153.176224.patch
Type: text/x-patch
Size: 19460 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181201/0af2a5cf/attachment.bin>


More information about the llvm-commits mailing list