diff --git a/lib/Dialect/AIE/Transforms/AIEObjectFifoStatefulTransform.cpp b/lib/Dialect/AIE/Transforms/AIEObjectFifoStatefulTransform.cpp index 649b385b35..0d84bc31cb 100644 --- a/lib/Dialect/AIE/Transforms/AIEObjectFifoStatefulTransform.cpp +++ b/lib/Dialect/AIE/Transforms/AIEObjectFifoStatefulTransform.cpp @@ -861,8 +861,7 @@ struct AIEObjectFifoStatefulTransformPass // case, but is not fully generic. if (auto nestedLoop = dyn_cast(body->begin())) { opIndex++; - auto clone = nestedLoop->clone(); - replaceOperands(builder, clone, opIndex, base, step, inLoop, + replaceOperands(builder, nestedLoop, opIndex, base, step, inLoop, numDuplications, dependencies, duplicatedOperations); replaceOpsNested(nestedLoop, opIndex, numDuplications); } else {