[Mlir-commits] [mlir] [mlir] remove folder on MemRef::ExtractStridedMetadataOp (PR #88043)

Matthias Springer llvmlistbot at llvm.org
Mon Apr 8 21:10:07 PDT 2024


================
@@ -1,20 +1,19 @@
 // RUN: mlir-opt --expand-strided-metadata -split-input-file %s -o - | FileCheck %s
 
+
+// memref.extract_strided_metadata is not folded away because meta-data on the %base memref 
+// can change in a future pass and folding away the Op here will cause incorrect lowering.
----------------
matthias-springer wrote:

I'm also wondering about that. The ownership-based buffer deallocation pass uses memref.extract_strided_metadata a lot and removing this folding could make it less efficient (running time).

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


More information about the Mlir-commits mailing list