[PATCH] D53891: [LTO] Pass down LTOUnit codegen flag to bitcode writer

Teresa Johnson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 15 21:46:22 PST 2018


tejohnson updated this revision to Diff 174329.
tejohnson added a comment.

- As discussed off-patch, will use a new, separate option to control this

splitting, here I am using -f[no]split-lto-unit.

- Switch the default of splitting lto units to off by default, unless

compiled with CFI or -fwhole-program-vtables.

- I'll update the patch title and summary once we converge on flag/behavior.


Repository:
  rC Clang

https://reviews.llvm.org/D53891

Files:
  include/clang/Driver/Options.td
  include/clang/Driver/SanitizerArgs.h
  include/clang/Frontend/CodeGenOptions.def
  lib/CodeGen/BackendUtil.cpp
  lib/Driver/SanitizerArgs.cpp
  lib/Driver/ToolChains/Clang.cpp
  lib/Frontend/CompilerInvocation.cpp
  test/CodeGenCXX/no-lto-unit.cpp
  test/CodeGenCXX/type-metadata-thinlto.cpp
  test/Driver/split-lto-unit.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53891.174329.patch
Type: text/x-patch
Size: 7902 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181116/1a8fff6f/attachment-0001.bin>


More information about the cfe-commits mailing list