[Mlir-commits] [mlir] 24f836a - [MLIR] Apply clang-tidy fixes for llvm-else-after-return in TosaProfileCompliance.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Sun Sep 14 07:01:00 PDT 2025
Author: Mehdi Amini
Date: 2025-09-14T07:00:30-07:00
New Revision: 24f836a8aef0a55be4c93e9b7e0fcf4bbcd00ebb
URL: https://github.com/llvm/llvm-project/commit/24f836a8aef0a55be4c93e9b7e0fcf4bbcd00ebb
DIFF: https://github.com/llvm/llvm-project/commit/24f836a8aef0a55be4c93e9b7e0fcf4bbcd00ebb.diff
LOG: [MLIR] Apply clang-tidy fixes for llvm-else-after-return in TosaProfileCompliance.cpp (NFC)
Added:
Modified:
mlir/lib/Dialect/Tosa/Transforms/TosaProfileCompliance.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Tosa/Transforms/TosaProfileCompliance.cpp b/mlir/lib/Dialect/Tosa/Transforms/TosaProfileCompliance.cpp
index 9543fa1fe39d8..20f9333e7c951 100644
--- a/mlir/lib/Dialect/Tosa/Transforms/TosaProfileCompliance.cpp
+++ b/mlir/lib/Dialect/Tosa/Transforms/TosaProfileCompliance.cpp
@@ -592,7 +592,8 @@ llvm::SmallString<7>
TosaProfileCompliance::stringifyTypeInfo(const TypeInfo &typeInfo) {
if (typeInfo.typeID == mlir::IntegerType::getTypeID()) {
return {"i" + llvm::utostr(typeInfo.bitWidth)};
- } else if (typeInfo.typeID == mlir::Float16Type::getTypeID()) {
+ }
+ if (typeInfo.typeID == mlir::Float16Type::getTypeID()) {
return {"f16"};
} else if (typeInfo.typeID == mlir::Float32Type::getTypeID()) {
return {"f32"};
More information about the Mlir-commits
mailing list