[Mlir-commits] [mlir] [mlir][spirv] Implement lowering `gpu.subgroup_reduce` with cluster size for SPIRV (PR #141402)

Jakub Kuderski llvmlistbot at llvm.org
Tue Jun 3 15:05:59 PDT 2025


================
@@ -479,12 +479,12 @@ static Value createGroupReduceOpImpl(OpBuilder &builder, Location loc,
         .getResult();
   }
 
-  Value clusterSizeValue =
-      clusterSize.has_value()
-          ? builder.create<spirv::ConstantOp>(
-                loc, builder.getI32Type(),
-                builder.getIntegerAttr(builder.getI32Type(), *clusterSize))
-          : Value{};
+  Value clusterSizeValue = {};
----------------
kuhar wrote:

```suggestion
  Value clusterSizeValue;
```

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


More information about the Mlir-commits mailing list