[Mlir-commits] [mlir] [mlir][xegpu] Improve XeGPU op verification logic for SIMT flavor and update tests. (PR #127920)
Igor Zamyatin
llvmlistbot at llvm.org
Thu Feb 20 11:38:47 PST 2025
================
@@ -311,17 +278,35 @@ LogicalResult LoadNdOp::verify() {
}
if (array_len > 1) {
- auto it = tdescShape.begin();
- tdescShape.insert(it, array_len);
+ auto it = adjustedTdescShape.begin();
+ adjustedTdescShape.insert(it, array_len);
}
- auto sgMap = tdescTy.getSGMapAttr();
- if (!isArgShapesValid(tdescShape, valueShape, sgMap))
- return emitOpError() << "Result shape doesn't match TensorDesc shape."
- << "The expected shape is " << makeString(tdescShape)
- << ". But the given shape is "
- << makeString(valueShape) << ".\n";
- return success();
+ auto sgMap = tdescTy.getSGMapAttr();
+ // sg_map not present means IR is in VC mode. In this case value shape must
----------------
Garra1980 wrote:
Fine with me
https://github.com/llvm/llvm-project/pull/127920
More information about the Mlir-commits
mailing list