[Mlir-commits] [mlir] 1b6d404 - [MLIR] Apply clang-tidy fixes for llvm-else-after-return in ScalableValueBoundsConstraintSet.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Sun Sep 7 10:56:22 PDT 2025


Author: Mehdi Amini
Date: 2025-09-07T10:55:50-07:00
New Revision: 1b6d404ed1f80bbda555ab4a2a8367262c0e152c

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

LOG: [MLIR] Apply clang-tidy fixes for llvm-else-after-return in ScalableValueBoundsConstraintSet.cpp (NFC)

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 4b749004622df..a26edac98ea8d 100644
--- a/mlir/lib/Dialect/Vector/IR/ScalableValueBoundsConstraintSet.cpp
+++ b/mlir/lib/Dialect/Vector/IR/ScalableValueBoundsConstraintSet.cpp
@@ -108,7 +108,8 @@ ScalableValueBoundsConstraintSet::computeScalableBound(
     if (boundType == BoundType::EQ && !invalidBound(lowerBound) &&
         lowerBound[0] == upperBound[0]) {
       return lowerBound[0];
-    } else if (boundType == BoundType::LB && !invalidBound(lowerBound)) {
+    }
+    if (boundType == BoundType::LB && !invalidBound(lowerBound)) {
       return lowerBound[0];
     } else if (boundType == BoundType::UB && !invalidBound(upperBound)) {
       return upperBound[0];


        


More information about the Mlir-commits mailing list