Skip to content

Commit

Permalink
Review comment v5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhishek-Varma committed Jan 29, 2025
1 parent 509fb6d commit 531ee50
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ SmallVector<mlir::CopyOpInterface> getCopyLikeConsumers(
LogicalObjFifoOpInterface op) {
SmallVector<mlir::CopyOpInterface> copyLikOps;
for (Operation *userOp : op->getUsers()) {
if (auto copyOp = dyn_cast<CopyOpInterface>(userOp)) {
if (dyn_cast_if_present<LogicalObjFifoOpInterface>(
copyOp.getSource().getDefiningOp()) == op)
copyLikOps.push_back(copyOp);
if (auto copyOp = dyn_cast<CopyOpInterface>(userOp);
copyOp && dyn_cast_if_present<LogicalObjFifoOpInterface>(
copyOp.getSource().getDefiningOp()) == op) {
copyLikOps.push_back(copyOp);
}
}
return copyLikOps;
Expand All @@ -30,10 +30,10 @@ SmallVector<mlir::CopyOpInterface> getCopyLikeProducers(
LogicalObjFifoOpInterface op) {
SmallVector<mlir::CopyOpInterface> copyLikOps;
for (Operation *userOp : op->getUsers()) {
if (auto copyOp = dyn_cast<CopyOpInterface>(userOp)) {
if (dyn_cast_if_present<LogicalObjFifoOpInterface>(
copyOp.getTarget().getDefiningOp()) == op)
copyLikOps.push_back(copyOp);
if (auto copyOp = dyn_cast<CopyOpInterface>(userOp);
copyOp && dyn_cast_if_present<LogicalObjFifoOpInterface>(
copyOp.getTarget().getDefiningOp()) == op) {
copyLikOps.push_back(copyOp);
}
}
return copyLikOps;
Expand Down

0 comments on commit 531ee50

Please sign in to comment.