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

Sang Ik Lee llvmlistbot at llvm.org
Fri Aug 22 11:29:48 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();
----------------
silee2 wrote:

Actually, code below that line is for maskSize != 1
Instead of `If-then-else`,
I'm doing If with early exit and fallthrough is the else clause.

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


More information about the Mlir-commits mailing list