[Mlir-commits] [mlir] [mlir][x86] Fix - Replace `load` with `transfer_read` to support on tensor type. (PR #194543)

Adam Siemieniuk llvmlistbot at llvm.org
Tue Apr 28 00:14:34 PDT 2026


================
@@ -98,7 +98,22 @@ static void packNonUnitDimOperandToVNNI(mlir::PatternRewriter &rewriter,
             });
       });
 
-  auto vec1 = vector::LoadOp::create(rewriter, loc, flatTy, srcBuff, indexVals);
+  int64_t srcRank;
+  if (auto memrefTy = dyn_cast<MemRefType>(srcBuff.getType())) {
----------------
adam-smnk wrote:

nit: you can skip braces

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


More information about the Mlir-commits mailing list