[Mlir-commits] [mlir] c817628 - Apply clang-tidy fixes for readability-simplify-boolean-expr in TypeConverter.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Mon Apr 18 11:15:49 PDT 2022
Author: Mehdi Amini
Date: 2022-04-18T18:15:30Z
New Revision: c817628b673b3c5ebc720330b4ed91ff37afc2e5
URL: https://github.com/llvm/llvm-project/commit/c817628b673b3c5ebc720330b4ed91ff37afc2e5
DIFF: https://github.com/llvm/llvm-project/commit/c817628b673b3c5ebc720330b4ed91ff37afc2e5.diff
LOG: Apply clang-tidy fixes for readability-simplify-boolean-expr in TypeConverter.cpp (NFC)
Added:
Modified:
mlir/lib/Conversion/LLVMCommon/TypeConverter.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Conversion/LLVMCommon/TypeConverter.cpp b/mlir/lib/Conversion/LLVMCommon/TypeConverter.cpp
index 2ac505c917c9c..e64487edd268c 100644
--- a/mlir/lib/Conversion/LLVMCommon/TypeConverter.cpp
+++ b/mlir/lib/Conversion/LLVMCommon/TypeConverter.cpp
@@ -387,10 +387,7 @@ bool LLVMTypeConverter::canConvertToBarePtr(BaseMemRefType type) {
if (ShapedType::isDynamicStrideOrOffset(stride))
return false;
- if (ShapedType::isDynamicStrideOrOffset(offset))
- return false;
-
- return true;
+ return !ShapedType::isDynamicStrideOrOffset(offset);
}
/// Convert a memref type to a bare pointer to the memref element type.
More information about the Mlir-commits
mailing list