[Mlir-commits] [mlir] [mlir][xegpu] Relax rank restriction of TensorDescType (PR #145916)

Charitha Saumya llvmlistbot at llvm.org
Mon Jun 30 11:57:12 PDT 2025


================
@@ -303,9 +303,7 @@ void XeGPUBlockingPass::runOnOperation() {
       // If the encoding is a ScatterTensorDescAttr, we need to
       // potentially adjust the chunk size based on the inst_data.
       if (tdescTy.isScattered()) {
-        auto scatterAttr =
-            llvm::dyn_cast_if_present<xegpu::ScatterTensorDescAttr>(encoding);
-        int64_t chunkSize = scatterAttr.getChunkSize().getInt();
+        int64_t chunkSize = tdescTy.getChunkSize();
----------------
charithaintc wrote:

>From LLVM docs,

![image](https://github.com/user-attachments/assets/a231a809-90db-4c21-b006-7f96d532364e)




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


More information about the Mlir-commits mailing list