OSDN Git Service

[ThinLTO] Add an option to disable (thin)lto internalization.
authorXin Tong <trent.xin.tong@gmail.com>
Mon, 5 Nov 2018 15:49:46 +0000 (15:49 +0000)
committerXin Tong <trent.xin.tong@gmail.com>
Mon, 5 Nov 2018 15:49:46 +0000 (15:49 +0000)
commitfbe10782a95bba2035a9bae0140947a040fd907b
treeeb72d828897dd199795fb61dc72707dfd471c756
parente3b515280e32f83113f49032fc6e7ccbaa96d35f
[ThinLTO] Add an option to disable (thin)lto internalization.

Summary:
LTO and ThinLTO optimizes the IR differently.

One source of differences is the amount of internalizations that
can happen.

Add an option to enable/disable internalization so that other
differences can be studied in isolation. e.g. inlining.

There are other things lto and thinlto do differently, I will add
flags to enable/disable them as needed.

Reviewers: tejohnson, pcc, steven_wu

Subscribers: mehdi_amini, inglorion, steven_wu, dexonsmith, dang, llvm-commits

Differential Revision: https://reviews.llvm.org/D53294

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346140 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/LTO/legacy/LTOCodeGenerator.h
lib/LTO/LTO.cpp
test/LTO/X86/internalize.ll [new file with mode: 0644]
test/ThinLTO/X86/internalize.ll