[Mlir-commits] [mlir] [mlir][transforms] Add `signalPassFailure` in RemoveDeadValues (PR #112199)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Oct 14 06:41:19 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir-core

Author: Longsheng Mou (CoTinker)

<details>
<summary>Changes</summary>

This PR adds `signalPassFailure` in RemoveDeadValues to ensure that a pipeline would stop here.
Fixes #<!-- -->111757.

---
Full diff: https://github.com/llvm/llvm-project/pull/112199.diff


1 Files Affected:

- (modified) mlir/lib/Transforms/RemoveDeadValues.cpp (+1-1) 


``````````diff
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)) {

``````````

</details>


https://github.com/llvm/llvm-project/pull/112199


More information about the Mlir-commits mailing list