[Mlir-commits] [mlir] [mlir][nvgpu] Fix crash when handling 0D memref in OptimizeSharedMemoryPass (PR #124517)

Longsheng Mou llvmlistbot at llvm.org
Sun Jan 26 23:54:53 PST 2025


================
@@ -152,6 +152,9 @@ mlir::nvgpu::optimizeSharedMemoryReadsAndWrites(Operation *parentOp,
   if (!memRefType || !NVGPUDialect::hasSharedMemoryAddressSpace(memRefType))
     return failure();
 
+  if (memRefType.getRank() == 0)
+    return failure();
----------------
CoTinker wrote:

How about `Not support 0D MemRefs.`

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


More information about the Mlir-commits mailing list