Skip to content

Commit 169e305

Browse files
committed
[AutoBump] Merge with fixes of 02f45b0 (Sep 11)
2 parents 0b6320c + 02f45b0 commit 169e305

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Compiler/CompilerDialects.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ DialectRegistry registerDialects(ArrayRef<accel::Accelerator::Kind> accels) {
4646
for (auto *accel : accel::Accelerator::getAccelerators())
4747
accel->registerDialects(registry);
4848

49-
if (useOldBufferization)
50-
memref::registerAllocationOpInterfaceExternalModels(registry);
49+
// Register interface needed by both old and new buffer deallocation pass.
50+
memref::registerAllocationOpInterfaceExternalModels(registry);
51+
arith::registerBufferDeallocationOpInterfaceExternalModels(registry);
5152

5253
return registry;
5354
}

0 commit comments

Comments
 (0)