Skip to content

Commit

Permalink
Changed condition for op being TTSchedulable
Browse files Browse the repository at this point in the history
  • Loading branch information
fbajraktariTT committed Nov 7, 2024
1 parent 4ec19f1 commit 542797b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Scheduler/Scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ bool isTTIROp(mlir::Operation *op) {
}

bool isTTShedulableOp(mlir::Operation *op) {
return (isTTNNOp(op) || isTTIROp(op)) && (not isa<func::ReturnOp>(op));
return (isTTNNOp(op) || isTTIROp(op)) &&
(not op->hasTrait<mlir::OpTrait::ReturnLike>());
}

// Init the dependencies map of all ops which are TTIR ops
Expand Down

0 comments on commit 542797b

Please sign in to comment.