Skip to content

Commit d043f6b

Browse files
update.
1 parent 07393f3 commit d043f6b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mlir/lib/Dialect/Affine/IR/AffineOps.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2649,9 +2649,8 @@ static SmallVector<OpFoldResult> AffineForEmptyLoopFolder(AffineForOp forOp) {
26492649
if (OpFoldResult lastTripIv = getConstantInductionVarForLastTrip(forOp)) {
26502650
replacements.push_back(lastTripIv);
26512651
continue;
2652-
} else {
2653-
return {};
26542652
}
2653+
return {};
26552654
}
26562655
if (iterArgIt == iterArgs.end()) {
26572656
// `val` is defined outside of the loop.

0 commit comments

Comments
 (0)