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

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


================
@@ -109,6 +109,8 @@ static LogicalResult getBackwardSliceImpl(Operation *op,
         if (parentOp->getNumRegions() == 1 &&
             llvm::hasSingleElement(parentOp->getRegion(0).getBlocks())) {
           return getBackwardSliceImpl(parentOp, backwardSlice, options);
+        } else {
+          return failure();
----------------
joker-eph wrote:

Can this be tested?

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


More information about the Mlir-commits mailing list