[Mlir-commits] [mlir] [MLIR][XeGPU] Update XeGPU create_tdesc, update_offset, load, store and prefetch. (PR #154653)

Adam Siemieniuk llvmlistbot at llvm.org
Fri Aug 22 10:05:39 PDT 2025


================
@@ -149,8 +162,9 @@ isValidGatherScatterBufferParams(Type maskTy, VectorType valueTy,
       return emitError()
              << "Mask should match value except the chunk size dim.";
   }
-
   llvm::SmallVector<int64_t> expectedMaskShape(valueShape);
+  if (maskSize == 1)
+    return success();
----------------
adam-smnk wrote:

nit: it might be less error-prone to perform remaining checks when `maskSize` is non-unit instead of an early exist.
As in:
```
if (maskSize != 1) {
  // perform checks
}
```

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


More information about the Mlir-commits mailing list