From 3c2667f11e035b214774c91872271acc5cccdb5f Mon Sep 17 00:00:00 2001 From: ilgeco Date: Wed, 3 Jun 2026 12:59:58 +0200 Subject: [PATCH] Fix memory bug --- src/PIM/Compiler/PimCodeGen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PIM/Compiler/PimCodeGen.cpp b/src/PIM/Compiler/PimCodeGen.cpp index 3c29ad9..dba3664 100644 --- a/src/PIM/Compiler/PimCodeGen.cpp +++ b/src/PIM/Compiler/PimCodeGen.cpp @@ -140,7 +140,7 @@ void PimMemory::allocateHost(ModuleOp moduleOp, func::FuncOp funcOp) { }); funcOp.walk([&](memref::AllocOp allocOp) { - if (!allocOp->getParentOfType()) + if (!allocOp->getParentOfType() && !allocOp->getParentOfType()) gatherMemEntry(allocOp.getResult()); });