[Mlir-commits] [mlir] [mlir][VectorToXeGPU] Lower out-of-bounds 1-D transfers (PR #220490)

Jianhui Li llvmlistbot at llvm.org
Fri Sep 18 09:50:29 PDT 2026


================
@@ -109,9 +109,6 @@ static LogicalResult transferPreconditions(PatternRewriter &rewriter,
   unsigned vecRank = vecTy.getRank();
   if (vecRank == 0)
     return rewriter.notifyMatchFailure(xferOp, "0D vectors are not supported");
-  if (xferOp.hasOutOfBoundsDim() && vecRank < 2)
----------------
Jianhui-Li wrote:

The slm path has its own outOfBound check. It is safe to lift the condition here.

    bool isOutOfBounds = readOp.hasOutOfBoundsDim();
      // Out of bounds case is not supported for SLM loads.
      if (isOutOfBounds)
        return rewriter.notifyMatchFailure(
            readOp, "Out-of-bounds access is not supported for SLM loads");

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


More information about the Mlir-commits mailing list