[Mlir-commits] [mlir] 70865c4 - [mlir][transforms] Add `signalPassFailure` in RemoveDeadValues (#112199)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Oct 17 18:55:44 PDT 2024
Author: Longsheng Mou
Date: 2024-10-18T09:55:41+08:00
New Revision: 70865c448ca9ebca08a77264e748ac4343789675
URL: https://github.com/llvm/llvm-project/commit/70865c448ca9ebca08a77264e748ac4343789675
DIFF: https://github.com/llvm/llvm-project/commit/70865c448ca9ebca08a77264e748ac4343789675.diff
LOG: [mlir][transforms] Add `signalPassFailure` in RemoveDeadValues (#112199)
This PR adds `signalPassFailure` in RemoveDeadValues to ensure that a
pipeline would stop here.
Fixes #111757.
Added:
Modified:
mlir/lib/Transforms/RemoveDeadValues.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Transforms/RemoveDeadValues.cpp b/mlir/lib/Transforms/RemoveDeadValues.cpp
index 3de4fb75ed831c..7e45f18b660ba7 100644
--- a/mlir/lib/Transforms/RemoveDeadValues.cpp
+++ b/mlir/lib/Transforms/RemoveDeadValues.cpp
@@ -589,7 +589,7 @@ void RemoveDeadValues::runOnOperation() {
});
if (acceptableIR.wasInterrupted())
- return;
+ return signalPassFailure();
module->walk([&](Operation *op) {
if (auto funcOp = dyn_cast<FunctionOpInterface>(op)) {
More information about the Mlir-commits
mailing list