[Mlir-commits] [mlir] [mlir][bufferization] Buffer deallocation: Make op preconditions stricter (PR #75127)

Aart Bik llvmlistbot at llvm.org
Fri Jan 19 09:42:53 PST 2024


================
@@ -591,7 +582,8 @@ func.func @while_two_arg(%arg0: index) {
 func.func @while_three_arg(%arg0: index) {
   %a = memref.alloc(%arg0) : memref<?xf32>
   scf.while (%arg1 = %a, %arg2 = %a, %arg3 = %a) : (memref<?xf32>, memref<?xf32>, memref<?xf32>) -> (memref<?xf32>, memref<?xf32>, memref<?xf32>) {
-    %0 = "test.make_condition"() : () -> i1
+    // This op has a side effect but it's not an Allocate or Free side effect.
----------------
aartbik wrote:

so do the same: not an allocate/free (or otherwise the neither nor)

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


More information about the Mlir-commits mailing list