Skip to content

Commit 70865c4

Browse files
authored
[mlir][transforms] Add signalPassFailure in RemoveDeadValues (#112199)
This PR adds `signalPassFailure` in RemoveDeadValues to ensure that a pipeline would stop here. Fixes #111757.
1 parent c3bbc3a commit 70865c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Transforms/RemoveDeadValues.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ void RemoveDeadValues::runOnOperation() {
589589
});
590590

591591
if (acceptableIR.wasInterrupted())
592-
return;
592+
return signalPassFailure();
593593

594594
module->walk([&](Operation *op) {
595595
if (auto funcOp = dyn_cast<FunctionOpInterface>(op)) {

0 commit comments

Comments
 (0)