diff options
author | Mehdi Amini <joker.eph@gmail.com> | 2022-01-02 22:02:21 +0000 |
---|---|---|
committer | Mehdi Amini <joker.eph@gmail.com> | 2022-01-02 22:26:57 +0000 |
commit | 7964568632c07270e7b9da8b80ff98fa98a558a7 (patch) | |
tree | b3c321a2d72e535a7826b1679d245e44dfe4d259 | |
parent | a8877c5ccc0e05495d60f1669d47826e60f373b8 (diff) | |
download | llvm-7964568632c07270e7b9da8b80ff98fa98a558a7.zip llvm-7964568632c07270e7b9da8b80ff98fa98a558a7.tar.gz llvm-7964568632c07270e7b9da8b80ff98fa98a558a7.tar.bz2 |
Apply clang-tidy fixes for readability-simplify-boolean-expr to MLIR NormalizeMemRefs.cpp (NFC)
-rw-r--r-- | mlir/lib/Transforms/NormalizeMemRefs.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mlir/lib/Transforms/NormalizeMemRefs.cpp b/mlir/lib/Transforms/NormalizeMemRefs.cpp index 477d0b6..aaf1a57 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>(); }); } |