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

Mehdi Amini llvmlistbot at llvm.org
Mon Mar 23 05:57:50 PDT 2026


Author: Mehdi Amini
Date: 2026-03-23T05:54:13-07:00
New Revision: dd6f3534afe1f9ec5a8533a77cb02e0e2f38a778

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

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

Added: 
    

Modified: 
    mlir/lib/Transforms/RemoveDeadValues.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Transforms/RemoveDeadValues.cpp b/mlir/lib/Transforms/RemoveDeadValues.cpp
index 957621c16bf2b..ade7647890830 100644
--- a/mlir/lib/Transforms/RemoveDeadValues.cpp
+++ b/mlir/lib/Transforms/RemoveDeadValues.cpp
@@ -142,9 +142,8 @@ static bool hasLive(ValueRange values, const DenseSet<Value> &nonLiveSet,
     if (liveness->isLive) {
       LDBG() << "Value " << value << " is live according to liveness analysis";
       return true;
-    } else {
-      LDBG() << "Value " << value << " is dead according to liveness analysis";
     }
+    LDBG() << "Value " << value << " is dead according to liveness analysis";
   }
   return false;
 }


        


More information about the Mlir-commits mailing list