[clang] [HIP][SPIR-V] Enable optimizations for amdgcnspirv target (PR #189383)

Marcos Maronas via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 31 02:25:59 PDT 2026


================
@@ -19,12 +19,12 @@
 
 // RUN: %clang -### --target=spirv64-amd-amdhsa %s 2>&1 \
 // RUN:   | FileCheck %s --check-prefix=INVOCATION
-// INVOCATION: "-cc1" "-triple" "spirv64-amd-amdhsa" {{.*}}"-disable-llvm-optzns" {{.*}} "-o" "[[OUTPUT:.+]]" "-x" "c"
+// INVOCATION: "-cc1" "-triple" "spirv64-amd-amdhsa" {{.*}}"-mllvm" "-vectorize-loops=false"{{.*}} "-o" "[[OUTPUT:.+]]" "-x" "c"
----------------
maarquitos14 wrote:

What about `"-mllvm", "-vectorize-slp=false"`, `"-fno-unroll-loops"` and `"-mllvm", "-interleave-loops=false"`?

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


More information about the cfe-commits mailing list