Skip to content

Commit 1ffaa03

Browse files
committed
fix endless loop
Signed-off-by: dchigarev <[email protected]>
1 parent fe373da commit 1ffaa03

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/gc/Transforms/Utils/ValueUtils.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,9 @@ LogicalResult maybeSqueezeDims(PatternRewriter &rewriter,
306306
newOperands.emplace_back(i, flatSubview);
307307
}
308308

309+
if (newOperands.empty())
310+
return success();
311+
309312
rewriter.modifyOpInPlace(linalgOp, [&] {
310313
for (auto [i, operand] : newOperands)
311314
linalgOp->setOperand(i, operand);

0 commit comments

Comments
 (0)