[Mlir-commits] [mlir] 75e185d - Apply clang-tidy fixes for readability-simplify-boolean-expr in LegalizeForLLVMExport.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Mon Jan 15 20:59:29 PST 2024
Author: Mehdi Amini
Date: 2024-01-15T20:59:12-08:00
New Revision: 75e185d50c3f83c82c02e9df587139a41bf96412
URL: https://github.com/llvm/llvm-project/commit/75e185d50c3f83c82c02e9df587139a41bf96412
DIFF: https://github.com/llvm/llvm-project/commit/75e185d50c3f83c82c02e9df587139a41bf96412.diff
LOG: Apply clang-tidy fixes for readability-simplify-boolean-expr in LegalizeForLLVMExport.cpp (NFC)
Added:
Modified:
mlir/lib/Conversion/ArmSMEToLLVM/ArmSMEToLLVM.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Conversion/ArmSMEToLLVM/ArmSMEToLLVM.cpp b/mlir/lib/Conversion/ArmSMEToLLVM/ArmSMEToLLVM.cpp
index 478253788a69bf..16214d72fcddc2 100644
--- a/mlir/lib/Conversion/ArmSMEToLLVM/ArmSMEToLLVM.cpp
+++ b/mlir/lib/Conversion/ArmSMEToLLVM/ArmSMEToLLVM.cpp
@@ -731,10 +731,8 @@ struct OuterProductOpConversion
unsigned minNumElts = arm_sme::MinStreamingVectorLengthInBits /
vectorType.getElementTypeBitWidth();
- if (vectorType.getShape() != ArrayRef<int64_t>({minNumElts, minNumElts}))
- return false;
-
- return true;
+ return vectorType.getShape() ==
+ ArrayRef<int64_t>({minNumElts, minNumElts});
};
// TODO: Support CombiningKind::Sub for outer products.
More information about the Mlir-commits
mailing list