]> granicus.if.org Git - clang/commit
[CUDA] Disable LTO for device-side compilations.
authorArtem Belevich <tra@google.com>
Wed, 21 Mar 2018 22:22:59 +0000 (22:22 +0000)
committerArtem Belevich <tra@google.com>
Wed, 21 Mar 2018 22:22:59 +0000 (22:22 +0000)
commiteac9a72b8c7d2c29a7dfa9dbf2680fca9d20cd70
tree8d2ddcc6ebdb4be225c0bfc360da24e005ef101a
parent350f0bf9a4723ed2b33a28f6af5cafd8383ed82c
[CUDA] Disable LTO for device-side compilations.

This fixes host-side LTO during CUDA compilation. Before, LTO
pipeline construction was clashing with CUDA pipeline construction.

At the moment there's no point doing LTO on device side as each
device-side TU is a complete program.  We will need to figure out
compilation pipeline construction for the device-side LTO when we
have working support for multi-TU device-side CUDA compilation.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@328161 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Driver.h
lib/Driver/Driver.cpp
lib/Driver/ToolChains/Clang.cpp
test/Driver/lto.cu [new file with mode: 0644]
test/Driver/thinlto.cu [new file with mode: 0644]