[Mlir-commits] [mlir] [mlir][VectorToXeGPU] Fix crash on memref with non-scalar element type (PR #183905)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Sun Mar 1 12:12:47 PST 2026
================
@@ -735,7 +746,8 @@ struct LoadLowering : public OpRewritePattern<vector::LoadOp> {
Location loc = loadOp.getLoc();
VectorType vecTy = loadOp.getResult().getType();
- if (failed(storeLoadPreconditions(rewriter, loadOp, vecTy)))
+ auto memTy = cast<MemRefType>(loadOp.getBase().getType());
----------------
sweiglbosker wrote:
```suggestion
MemRefType memTy = loadOp.getBase().getType();
```
I don't think the cast is necessary
https://github.com/llvm/llvm-project/pull/183905
More information about the Mlir-commits
mailing list