[Mlir-commits] [mlir] [MLIR][XeGPU][VectorToXeGPU] Fix transfer_read/write cases with non-contiguous memrefs (PR #158126)

Dmitry Chigarev llvmlistbot at llvm.org
Thu Sep 11 11:01:57 PDT 2025


================
@@ -315,51 +325,30 @@ static Value computeOffsets(VectorTransferOpInterface xferOp,
         arith::AddIOp::create(rewriter, loc, localOffsets, broadcasted[i]);
 
   // Compute base offset from transfer read indices
-  Value baseOffset = nullptr;
-  if (!indices.empty()) {
----------------
dchigarev wrote:

made the branch unconditional since we always want to consider the `baseOffset`

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


More information about the Mlir-commits mailing list