From 9132f5907a8b077ecf22fac8f3317f4d2058bc56 Mon Sep 17 00:00:00 2001 From: Andra Bisca Date: Wed, 24 Apr 2024 10:05:06 +0200 Subject: [PATCH] Update lib/Dialect/AIE/Transforms/AIEAssignBuffers.cpp Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- lib/Dialect/AIE/Transforms/AIEAssignBuffers.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/lib/Dialect/AIE/Transforms/AIEAssignBuffers.cpp b/lib/Dialect/AIE/Transforms/AIEAssignBuffers.cpp index 61bdf54862..f30988fe50 100644 --- a/lib/Dialect/AIE/Transforms/AIEAssignBuffers.cpp +++ b/lib/Dialect/AIE/Transforms/AIEAssignBuffers.cpp @@ -189,14 +189,11 @@ struct SimpleBankAwareAllocationPattern : public OpRewritePattern { bankIndex = setBufferAddress(buffer, numBanks, bankIndex, nextAddrInBanks, bankLimits); // Sort by smallest address before printing memory map. - std::sort(allBuffers.begin(), allBuffers.end(), - [](BufferOp a, BufferOp b) { - assert(a.getAddress().has_value() && - "buffer must have address assigned"); - assert(b.getAddress().has_value() && - "buffer must have address assigned"); - return a.getAddress().value() < b.getAddress().value(); - }); + std::sort(allBuffers.begin(), allBuffers.end(), [](BufferOp a, BufferOp b) { + assert(a.getAddress().has_value() && "buffer must have address assigned"); + assert(b.getAddress().has_value() && "buffer must have address assigned"); + return a.getAddress().value() < b.getAddress().value(); + }); // Check if memory was exceeded on any bank and print debug info. return checkAndPrintOverflow(tile, numBanks, stacksize, allBuffers, nextAddrInBanks, bankLimits); }