[Mlir-commits] [mlir] [mlir][memref] Fix hoist-static-allocs option of buffer-results-to-out-params when function parameters are returned (PR #102093)
donald chen
llvmlistbot at llvm.org
Tue Aug 6 06:16:34 PDT 2024
================
@@ -321,6 +321,11 @@ def BufferResultsToOutParams : Pass<"buffer-results-to-out-params", "ModuleOp">
This optimization applies on the returned memref which has static shape and
is allocated by memref.alloc in the function. It will use the memref given
in function argument to replace the allocated memref.
+
+ If the hoist-static-allocs option is on, and a function returns a memref
----------------
cxy-1993 wrote:
ditto
https://github.com/llvm/llvm-project/pull/102093
More information about the Mlir-commits
mailing list