[clang] [libc] [Clang] Make `--lto-partitions` only default for HIP (PR #133164)

Shilei Tian via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 26 14:57:13 PDT 2025


================
@@ -21,7 +21,7 @@
 // RUN: %clang -### --target=amdgcn-amd-amdhsa -mcpu=gfx90a:xnack+:sramecc- -nogpulib \
 // RUN:   -L. -flto -fconvergent-functions %s 2>&1 | FileCheck -check-prefix=LTO %s
 // LTO: clang{{.*}} "-flto=full"{{.*}}"-fconvergent-functions"
-// LTO: ld.lld{{.*}}"-L."{{.*}}"-plugin-opt=mcpu=gfx90a"{{.*}}"--lto-partitions={{[0-9]+}}"{{.*}}"-plugin-opt=-mattr=-sramecc,+xnack"
+// LTO: ld.lld{{.*}}"-L."{{.*}}"-plugin-opt=mcpu=gfx90a"{{.*}}"-plugin-opt=-mattr=-sramecc,+xnack"
----------------
shiltian wrote:

This should also be tested in the hip test.

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


More information about the cfe-commits mailing list