summaryrefslogtreecommitdiff
path: root/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp
diff options
context:
space:
mode:
authorMatthias Springer <me@m-sp.org>2025-10-16 11:13:30 +0000
committerMatthias Springer <me@m-sp.org>2025-10-16 11:13:30 +0000
commit51964b10b38e1c7badeff8cd3c28793659158618 (patch)
tree69da3b3ab9cfdd2b506c8c1e27fb64bf84972b0b /mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp
parent0f35df35d193781feb2d39e65e1cebd7fa44d7c9 (diff)
[mlir][Analysis] Remove return value from `getBackwardSlice`users/matthias-springer/simplify_backward_slice
Diffstat (limited to 'mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp')
-rw-r--r--mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp b/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp
index 29b770fb4b27..44bdfc28ef8e 100644
--- a/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp
+++ b/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp
@@ -1970,11 +1970,8 @@ checkAssumptionForLoop(Operation *loopOp, Operation *consumerOp,
return !dominanceInfo.properlyDominates(op, *firstUserOfLoop);
};
llvm::SetVector<Operation *> slice;
- for (auto operand : consumerOp->getOperands()) {
- LogicalResult result = getBackwardSlice(operand, &slice, options);
- assert(result.succeeded() && "expected a backward slice");
- (void)result;
- }
+ for (auto operand : consumerOp->getOperands())
+ getBackwardSlice(operand, &slice, options);
if (!slice.empty()) {
// If consumerOp has one producer, which is also the user of loopOp.