diff options
author | Teresa Johnson <tejohnson@google.com> | 2019-01-11 18:32:07 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2019-01-11 18:32:07 +0000 |
commit | 84cecfcb3db7c3275ae2d64c419a752d9f5311d6 (patch) | |
tree | 137b550e0763b8685551711c9a6829e232870ba6 /clang/test/CodeGen/thinlto-distributed-cfi-devirt.ll | |
parent | 290a8398917a3d4ef521a0cfdb67e65238f0043a (diff) | |
download | bcm5719-llvm-84cecfcb3db7c3275ae2d64c419a752d9f5311d6.tar.gz bcm5719-llvm-84cecfcb3db7c3275ae2d64c419a752d9f5311d6.zip |
[LTO] Add option to enable LTOUnit splitting, and disable unless needed
Summary:
Adds a new -f[no]split-lto-unit flag that is disabled by default to
control module splitting during ThinLTO. It is automatically enabled
for -fsanitize=cfi and -fwhole-program-vtables.
The new EnableSplitLTOUnit codegen flag is passed down to llvm
via a new module flag of the same name.
Depends on D53890.
Reviewers: pcc
Subscribers: ormris, mehdi_amini, inglorion, eraman, steven_wu, dexonsmith, cfe-commits, llvm-commits
Differential Revision: https://reviews.llvm.org/D53891
llvm-svn: 350949
Diffstat (limited to 'clang/test/CodeGen/thinlto-distributed-cfi-devirt.ll')
-rw-r--r-- | clang/test/CodeGen/thinlto-distributed-cfi-devirt.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGen/thinlto-distributed-cfi-devirt.ll b/clang/test/CodeGen/thinlto-distributed-cfi-devirt.ll index fbcaa773ba0..2ecf149b061 100644 --- a/clang/test/CodeGen/thinlto-distributed-cfi-devirt.ll +++ b/clang/test/CodeGen/thinlto-distributed-cfi-devirt.ll @@ -4,7 +4,7 @@ ; It additionally enables -fwhole-program-vtables to get more information in ; TYPE_IDs of GLOBALVAL_SUMMARY_BLOCK. -; RUN: opt -thinlto-bc -o %t.o %s +; RUN: opt -thinlto-bc -thinlto-split-lto-unit -o %t.o %s ; FIXME: Fix machine verifier issues and remove -verify-machineinstrs=0. PR39436. ; RUN: llvm-lto2 run -thinlto-distributed-indexes %t.o \ |