[Mlir-commits] [mlir] e4cff3c - [mlir] Avoid else after return in ScalableValueBounds (NFC) (#169211)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Nov 24 04:42:40 PST 2025


Author: Benjamin Maxwell
Date: 2025-11-24T12:42:36Z
New Revision: e4cff3c687fe909a2ff291576872aa06a55277ce

URL: https://github.com/llvm/llvm-project/commit/e4cff3c687fe909a2ff291576872aa06a55277ce
DIFF: https://github.com/llvm/llvm-project/commit/e4cff3c687fe909a2ff291576872aa06a55277ce.diff

LOG: [mlir] Avoid else after return in ScalableValueBounds (NFC) (#169211)

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Vector/IR/ScalableValueBoundsConstraintSet.cpp b/mlir/lib/Dialect/Vector/IR/ScalableValueBoundsConstraintSet.cpp
index a26edac98ea8d..2986f4c2d607d 100644
--- a/mlir/lib/Dialect/Vector/IR/ScalableValueBoundsConstraintSet.cpp
+++ b/mlir/lib/Dialect/Vector/IR/ScalableValueBoundsConstraintSet.cpp
@@ -106,14 +106,12 @@ ScalableValueBoundsConstraintSet::computeScalableBound(
 
   AffineMap bound = [&] {
     if (boundType == BoundType::EQ && !invalidBound(lowerBound) &&
-        lowerBound[0] == upperBound[0]) {
+        lowerBound[0] == upperBound[0])
       return lowerBound[0];
-    }
-    if (boundType == BoundType::LB && !invalidBound(lowerBound)) {
+    if (boundType == BoundType::LB && !invalidBound(lowerBound))
       return lowerBound[0];
-    } else if (boundType == BoundType::UB && !invalidBound(upperBound)) {
+    if (boundType == BoundType::UB && !invalidBound(upperBound))
       return upperBound[0];
-    }
     return AffineMap{};
   }();
 


        


More information about the Mlir-commits mailing list