[Mlir-commits] [mlir] [mlir][bufferization] Fix OneShotBufferize when `defaultMemorySpaceFn` is used (PR #91524)

Matthias Springer llvmlistbot at llvm.org
Mon May 20 03:34:00 PDT 2024


================
@@ -67,10 +67,14 @@ BufferizeTypeConverter::BufferizeTypeConverter() {
                               ValueRange inputs, Location loc) -> Value {
     assert(inputs.size() == 1 && "expected exactly one input");
 
+    // Unranked to ranked casts must be explicit.
+    if (auto inputType = dyn_cast<UnrankedMemRefType>(inputs[0].getType()))
----------------
matthias-springer wrote:

Why is this needed?

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


More information about the Mlir-commits mailing list