[PATCH] D44691: [CUDA] Disable LTO for device-side compilations.

Artem Belevich via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 20 10:02:04 PDT 2018


tra created this revision.
tra added reviewers: tejohnson, jlebar.
Herald added subscribers: eraman, inglorion, mehdi_amini, sanjoy.

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.


https://reviews.llvm.org/D44691

Files:
  clang/include/clang/Driver/Driver.h
  clang/lib/Driver/Driver.cpp
  clang/lib/Driver/ToolChains/Clang.cpp
  clang/test/Driver/lto.cu
  clang/test/Driver/thinlto.cu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44691.139151.patch
Type: text/x-patch
Size: 10349 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180320/0186c6d2/attachment.bin>


More information about the cfe-commits mailing list