[PATCH] D135305: [Clang] Fix using LTO with the new driver in RDC-mode

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 5 15:17:24 PDT 2022


yaxunl added a comment.

In D135305#3838435 <https://reviews.llvm.org/D135305#3838435>, @jhuber6 wrote:

> In D135305#3838412 <https://reviews.llvm.org/D135305#3838412>, @yaxunl wrote:
>
>> should we test with -ccc-print-phases instead? It is not clear what actions are produced by driver.
>
> Ah, realized you meant with phases. This is good enough for NVPTX as there is no explicit `assembler` phase. LTO makes no difference for AMDGPU as it already outputs bitcode.

It is not clear whether the driver respects -foffload-lto when -fno-gpu-rdc is specified. -ccc-print-phases shows whether the driver generates bc or object. -ccc-print-bindings does not because it does not show the file types.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D135305/new/

https://reviews.llvm.org/D135305



More information about the cfe-commits mailing list