Skip to content

Commit d0ee361

Browse files
committed
-buffer-deallocation pass is removed. Use -ownership-based-buffer-deallocation.
llvm/llvm-project#126366
1 parent 24e9cce commit d0ee361

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frontend/catalyst/pipelines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def get_bufferization_stage(options: CompileOptions) -> List[str]:
240240
"func.func(buffer-hoisting)",
241241
"func.func(buffer-loop-hoisting)",
242242
"func.func(promote-buffers-to-stack)",
243-
"func.func(buffer-deallocation)",
243+
"ownership-based-buffer-deallocation",
244244
"convert-arraylist-to-memref",
245245
"convert-bufferization-to-memref",
246246
"canonicalize", # Must be after convert-bufferization-to-memref

mlir/lib/Driver/Pipelines.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ void createBufferizationPipeline(OpPassManager &pm)
8686
pm.addNestedPass<mlir::func::FuncOp>(mlir::bufferization::createBufferHoistingPass());
8787
pm.addNestedPass<mlir::func::FuncOp>(mlir::bufferization::createBufferLoopHoistingPass());
8888
pm.addNestedPass<mlir::func::FuncOp>(mlir::bufferization::createPromoteBuffersToStackPass());
89-
pm.addNestedPass<mlir::func::FuncOp>(mlir::bufferization::createBufferDeallocationPass());
89+
pm.addPass(catalyst::createOwnershipBasedBufferDeallocationPass());
9090
pm.addPass(catalyst::createArrayListToMemRefPass());
9191
pm.addPass(mlir::createConvertBufferizationToMemRefPass());
9292
pm.addPass(mlir::createCanonicalizerPass());

0 commit comments

Comments
 (0)