Skip to content

Commit

Permalink
Update lib/Dialect/AIE/Transforms/AIEObjectFifoStatefulTransform.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
AndraBisca and github-actions[bot] authored Nov 7, 2024
1 parent 3e05355 commit b9c3fd7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Dialect/AIE/Transforms/AIEObjectFifoStatefulTransform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,10 @@ struct AIEObjectFifoStatefulTransformPass
auto elemInType = llvm::cast<MemRefType>(fifoInType.getElementType());
int inSize = elemInType.getNumElements();

auto fifoOutType = llvm::cast<AIEObjectFifoType>(fifoOut.getElemType());
auto elemOutType = llvm::cast<MemRefType>(fifoOutType.getElementType());
auto fifoOutType =
llvm::cast<AIEObjectFifoType>(fifoOut.getElemType());
auto elemOutType =
llvm::cast<MemRefType>(fifoOutType.getElementType());

if (int outSize = elemOutType.getNumElements(); inSize >= outSize) {
if (op.name() != fifoIn.name())
Expand Down

0 comments on commit b9c3fd7

Please sign in to comment.