[Mlir-commits] [mlir] [MLIR][SliceAnalysis] Add comment and restore failure condition (PR #142223)

Mehdi Amini llvmlistbot at llvm.org
Sat May 31 01:25:50 PDT 2025


================
@@ -140,6 +140,8 @@ void getForwardSlice(Value root, SetVector<Operation *> *forwardSlice,
 ///
 /// This function returns whether the backwards slice was able to be
 /// successfully computed, and failure if it was unable to determine the slice.
+/// This function will presently return failure if a value to process is a blockargument
+/// whose parent op has more than region or more than one block.
----------------
joker-eph wrote:

```suggestion
/// whose parent op has more than one region, or a region with more than one block.
```

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


More information about the Mlir-commits mailing list