[Mlir-commits] [mlir] [MLIR][XeGPU] Add lowering from transfer_read/transfer_write to load_gather/store_scatter (PR #152429)

Chao Chen llvmlistbot at llvm.org
Fri Aug 8 13:27:43 PDT 2025


================
@@ -165,6 +496,20 @@ struct TransferReadLowering : public OpRewritePattern<vector::TransferReadOp> {
     if (failed(transferPreconditions(rewriter, readOp)))
       return failure();
 
+    auto chip = xegpu::getXeGPUChipStr(readOp);
+    if ( chip != "pvc" && chip != "bmg") {
+      // perform additional checks -
+      if (failed(extraCheckForScatteredLoadStore(readOp, rewriter)))
----------------
chencha3 wrote:

it seems the extracCheck is not actual extra check. it is a specific check about the compatiblity to load_gather, am I right? 

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


More information about the Mlir-commits mailing list