Skip to content

Commit

Permalink
Revert change
Browse files Browse the repository at this point in the history
  • Loading branch information
pvasireddy-amd committed Nov 1, 2024
1 parent 5e12917 commit e5dd194
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions lib/Dialect/AIE/Transforms/AIEObjectFifoStatefulTransform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -464,13 +464,9 @@ struct AIEObjectFifoStatefulTransformPass
builder.create<UseLockOp>(builder.getUnknownLoc(), acqLock, acqLockAction,
acqMode);

if (!dims.getValue().empty() && padDimensions) {
if (!padDimensions.getValue().empty())
builder.create<DMABDOp>(builder.getUnknownLoc(), buff, offset, len,
dims, padDimensions);
else
builder.create<DMABDOp>(builder.getUnknownLoc(), buff, offset, len,
dims);
if (!dims.getValue().empty() && !padDimensions.getValue().empty()) {
builder.create<DMABDOp>(builder.getUnknownLoc(), buff, offset, len, dims,
padDimensions);
} else if (!dims.getValue().empty()) {
builder.create<DMABDOp>(builder.getUnknownLoc(), buff, offset, len, dims);
} else {
Expand Down

0 comments on commit e5dd194

Please sign in to comment.