]> granicus.if.org Git - llvm/commit
[ThinLTO] Disable importing and other cross-module optis at -O0
authorTeresa Johnson <tejohnson@google.com>
Mon, 31 Oct 2016 22:12:21 +0000 (22:12 +0000)
committerTeresa Johnson <tejohnson@google.com>
Mon, 31 Oct 2016 22:12:21 +0000 (22:12 +0000)
commit485ef16bd4bbcaf9610b2f1423f4f0f639203c26
treea639f8bb1001e69a7f481558580bd9fb358dbc8a
parent8ddde8c45fe3a434ce5642635098faa14240a6bd
[ThinLTO] Disable importing and other cross-module optis at -O0

Summary:
There is no point to importing at -O0, since we won't inline. We should
also disable other cross-module optimizations.

(Plan to backport this fix to the 3.9 branch to fix PR30774)

Reviewers: pcc

Subscribers: johanengelen, mehdi_amini

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285648 91177308-0d34-0410-b5e6-96231b3b80d8
lib/LTO/LTO.cpp
test/ThinLTO/X86/Inputs/funcimport2.ll [new file with mode: 0644]
test/ThinLTO/X86/funcimport2.ll [new file with mode: 0644]
test/tools/gold/X86/Inputs/thinlto_funcimport.ll [new file with mode: 0644]
test/tools/gold/X86/thinlto_funcimport.ll [new file with mode: 0644]
tools/llvm-lto2/llvm-lto2.cpp