From e5dd19402ee6d25fccf40c882d4dfbb87249d715 Mon Sep 17 00:00:00 2001 From: Pranathi Vasireddy Date: Fri, 1 Nov 2024 15:48:44 -0600 Subject: [PATCH] Revert change --- .../AIE/Transforms/AIEObjectFifoStatefulTransform.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/Dialect/AIE/Transforms/AIEObjectFifoStatefulTransform.cpp b/lib/Dialect/AIE/Transforms/AIEObjectFifoStatefulTransform.cpp index c46e3d369c..8ecb3ca2cc 100644 --- a/lib/Dialect/AIE/Transforms/AIEObjectFifoStatefulTransform.cpp +++ b/lib/Dialect/AIE/Transforms/AIEObjectFifoStatefulTransform.cpp @@ -464,13 +464,9 @@ struct AIEObjectFifoStatefulTransformPass builder.create(builder.getUnknownLoc(), acqLock, acqLockAction, acqMode); - if (!dims.getValue().empty() && padDimensions) { - if (!padDimensions.getValue().empty()) - builder.create(builder.getUnknownLoc(), buff, offset, len, - dims, padDimensions); - else - builder.create(builder.getUnknownLoc(), buff, offset, len, - dims); + if (!dims.getValue().empty() && !padDimensions.getValue().empty()) { + builder.create(builder.getUnknownLoc(), buff, offset, len, dims, + padDimensions); } else if (!dims.getValue().empty()) { builder.create(builder.getUnknownLoc(), buff, offset, len, dims); } else {