[Mlir-commits] [mlir] [mlir][transforms] Add `signalPassFailure` in RemoveDeadValues (PR #112199)
Longsheng Mou
llvmlistbot at llvm.org
Mon Oct 14 06:40:45 PDT 2024
https://github.com/CoTinker created https://github.com/llvm/llvm-project/pull/112199
This PR adds `signalPassFailure` in RemoveDeadValues to ensure that a pipeline would stop here.
Fixes #111757.
>From 0410b58806a85ccc3a9394d8b686a0d0573b38be Mon Sep 17 00:00:00 2001
From: Longsheng Mou <longshengmou at gmail.com>
Date: Mon, 14 Oct 2024 21:37:16 +0800
Subject: [PATCH] [mlir][transforms] Add `signalPassFailure` in
RemoveDeadValues
This PR adds `signalPassFailure` in RemoveDeadValues to ensure that a
pipeline would stop here.
---
mlir/lib/Transforms/RemoveDeadValues.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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