[Mlir-commits] [mlir] 7964568 - Apply clang-tidy fixes for readability-simplify-boolean-expr to MLIR NormalizeMemRefs.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Sun Jan 2 14:27:15 PST 2022
Author: Mehdi Amini
Date: 2022-01-02T22:26:57Z
New Revision: 7964568632c07270e7b9da8b80ff98fa98a558a7
URL: https://github.com/llvm/llvm-project/commit/7964568632c07270e7b9da8b80ff98fa98a558a7
DIFF: https://github.com/llvm/llvm-project/commit/7964568632c07270e7b9da8b80ff98fa98a558a7.diff
LOG: Apply clang-tidy fixes for readability-simplify-boolean-expr to MLIR NormalizeMemRefs.cpp (NFC)
Added:
Modified:
mlir/lib/Transforms/NormalizeMemRefs.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Transforms/NormalizeMemRefs.cpp b/mlir/lib/Transforms/NormalizeMemRefs.cpp
index 477d0b6ec304..aaf1a5717b46 100644
--- a/mlir/lib/Transforms/NormalizeMemRefs.cpp
+++ b/mlir/lib/Transforms/NormalizeMemRefs.cpp
@@ -93,9 +93,7 @@ void NormalizeMemRefs::runOnOperation() {
/// TODO: Extend this for DimOps.
static bool isMemRefNormalizable(Value::user_range opUsers) {
return !llvm::any_of(opUsers, [](Operation *op) {
- if (op->hasTrait<OpTrait::MemRefsNormalizable>())
- return false;
- return true;
+ return !op->hasTrait<OpTrait::MemRefsNormalizable>();
});
}
More information about the Mlir-commits
mailing list