[clang] [llvm] [HLSL] Handle WaveActiveBallot struct return type appropriately (PR #175105)

Farzon Lotfi via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 15 21:06:45 PST 2026


================
@@ -1,22 +1,28 @@
-; RUN: opt -S -dxil-op-lower -mtriple=dxil-pc-shadermodel6.3-compute %s | FileCheck %s
+; RUN: opt -S -dxil-op-lower -mtriple=dxil-pc-shadermodel6.3-compute %s | FileCheck --check-prefix LOWER %s
+; RUN: opt -S -scalarizer -mtriple=dxil-pc-shadermodel6.3-library < %s | FileCheck --check-prefix SCALAR %s
 
 %dx.types.fouri32 = type { i32, i32, i32, i32 }
 
-define <4 x i32> @wave_ballot_simple(i1 noundef %p1) {
----------------
farzonl wrote:

If this test removes all the vectors then checking scalarization doesn’t do anything now seems pointless.

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


More information about the cfe-commits mailing list