[clang] Revert "[HIP][AMDGPU] Use non-LTO pipeline for non-RDC in the linker wrapper (#201135)" (PR #206961)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 1 06:39:55 PDT 2026


jhuber6 wrote:

> Also, the old driver's behavior was affected by the recent change to enable LTO by default. That needs to be fixed as well. Otherwise, we completely lose the ability to compile code the way we did before.

I thought I already fixed that

> I still don't think we should enable LTO by default for both compilation modes this way.

I'm pretty sure I already resolved the other reported issues with LTO, and this is causing issues now. With my rework to the LTO handling it's now possible to do `-fno-offload-lto` and we could make that the default for no-RDC in a follow-up.

https://github.com/llvm/llvm-project/pull/206961


More information about the cfe-commits mailing list