Skip to content

Commit acde55f

Browse files
MacDueaugusto2112
authored andcommitted
[mlir] Avoid else after return in ScalableValueBounds (NFC) (llvm#169211)
1 parent 16b9cb1 commit acde55f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

mlir/lib/Dialect/Vector/IR/ScalableValueBoundsConstraintSet.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,12 @@ ScalableValueBoundsConstraintSet::computeScalableBound(
106106

107107
AffineMap bound = [&] {
108108
if (boundType == BoundType::EQ && !invalidBound(lowerBound) &&
109-
lowerBound[0] == upperBound[0]) {
109+
lowerBound[0] == upperBound[0])
110110
return lowerBound[0];
111-
}
112-
if (boundType == BoundType::LB && !invalidBound(lowerBound)) {
111+
if (boundType == BoundType::LB && !invalidBound(lowerBound))
113112
return lowerBound[0];
114-
} else if (boundType == BoundType::UB && !invalidBound(upperBound)) {
113+
if (boundType == BoundType::UB && !invalidBound(upperBound))
115114
return upperBound[0];
116-
}
117115
return AffineMap{};
118116
}();
119117

0 commit comments

Comments
 (0)