[clang] [Clang] Set default LTO mode for AMDGCN/SPIR-V targets to full (PR #201457)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 3 14:56:11 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 88195 tests passed
* 1637 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.Driver/hip-offload-compress-zlib.hip</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 5
rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/hip-offload-compress-zlib.hip.tmp.bc
# executed command: rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/hip-offload-compress-zlib.hip.tmp.bc
# note: command had no output on stdout or stderr
# RUN: at line 6
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -c -v --target=x86_64-linux-gnu -x hip --offload-arch=gfx1100 --offload-arch=gfx1101 --no-offload-new-driver -fgpu-rdc -nogpuinc -nogpulib /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/hip_multiple_inputs/a.cu --offload-compress --offload-compression-level=9 --offload-device-only --gpu-bundle-output -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/hip-offload-compress-zlib.hip.tmp.bc 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hip-offload-compress-zlib.hip
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -c -v --target=x86_64-linux-gnu -x hip --offload-arch=gfx1100 --offload-arch=gfx1101 --no-offload-new-driver -fgpu-rdc -nogpuinc -nogpulib /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/hip_multiple_inputs/a.cu --offload-compress --offload-compression-level=9 --offload-device-only --gpu-bundle-output -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/hip-offload-compress-zlib.hip.tmp.bc
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hip-offload-compress-zlib.hip
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hip-offload-compress-zlib.hip:15:11: error: CHECK: expected string not found in input
# | // CHECK: clang-offload-bundler{{.*}} -type=bc
# | ^
# | <stdin>:1:1: note: scanning from here
# | clang version 23.0.0git (https://github.com/llvm/llvm-project e7860be5be56c5b6b59a3c1aad5c57da23137c8e)
# | ^
# | <stdin>:11:2305: note: possible intended match here
# | "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-23" -cc1 -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-linux-gnu -Werror=atomic-alignment -emit-llvm-bc -flto=full -flto-unit -disable-free -clear-ast-before-backend -main-file-name a.cu -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=all -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -aux-target-cpu x86-64 -fcuda-is-device -fno-threadsafe-statics -fvisibility=hidden -fapply-global-visibility-to-externs -target-cpu gfx1100 -debugger-tuning=gdb -fdebug-compilation-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver -v -fcoverage-compilation-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver -resource-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/backward -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/backward -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fno-autolink -ferror-limit 19 -fhip-new-launch-api -fgpu-rdc --no-offloadlib -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -cuid=7d741f2def6e3600 -fcuda-allow-variadic-functions -faddrsig -fdwarf2-cfi-asm -o /tmp/lit-tmp-a_npmrzk/a-gfx1100-84f85d.o -x hip /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/hip_multiple_inputs/a.cu
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hip-offload-compress-zlib.hip
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: clang version 23.0.0git (https://github.com/llvm/llvm-project e7860be5be56c5b6b59a3c1aad5c57da23137c8e)
# | check:15'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | 2: Target: x86_64-unknown-linux-gnu
# | check:15'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 3: Thread model: posix
# | check:15'0 ~~~~~~~~~~~~~~~~~~~~
# | 4: InstalledDir: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin
# | check:15'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 5: Build config: +assertions
# | check:15'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 6: Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/11
# | check:15'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 7: Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/13
# | check:15'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 8: Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/13
# | check:15'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 9: Candidate multilib: .;@m64
# | check:15'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 10: Selected multilib: .;@m64
# | check:15'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 11: "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-23" -cc1 -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-linux-gnu -Werror=atomic-alignment -emit-llvm-bc -flto=full -flto-unit -disable-free -clear-ast-before-backend -main-file-name a.cu -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=all -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -aux-target-cpu x86-64 -fcuda-is-device -fno-threadsafe-statics -fvisibility=hidden -fapply-global-visibility-to-externs -target-cpu gfx1100 -debugger-tuning=gdb -fdebug-compilation-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver -v -fcoverage-compilation-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver -resource-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/backward -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/backward -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fno-autolink -ferror-limit 19 -fhip-new-launch-api -fgpu-rdc --no-offloadlib -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -cuid=7d741f2def6e3600 -fcuda-allow-variadic-functions -faddrsig -fdwarf2-cfi-asm -o /tmp/lit-tmp-a_npmrzk/a-gfx1100-84f85d.o -x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~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:15'1 ? possible intended match
# | 12: clang -cc1 version 23.0.0git based upon LLVM 23.0.0git default target x86_64-unknown-linux-gnu
# | check:15'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 13: ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/13/../../../../x86_64-linux-gnu/include"
# | check:15'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 14: ignoring nonexistent directory "/include"
# | check:15'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 15: ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/13/../../../../x86_64-linux-gnu/include"
# | check:15'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 16: ignoring nonexistent directory "/include"
# | check:15'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/201457
More information about the cfe-commits
mailing list