[Mlir-commits] [mlir] 1837579 - Apply clang-tidy fixes for readability-simplify-boolean-expr in IntegerRelation.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Mon Mar 4 23:15:29 PST 2024
Author: Mehdi Amini
Date: 2024-03-04T23:15:10-08:00
New Revision: 1837579bbc9c5e0b49a54e60d99eed3d38b47d3b
URL: https://github.com/llvm/llvm-project/commit/1837579bbc9c5e0b49a54e60d99eed3d38b47d3b
DIFF: https://github.com/llvm/llvm-project/commit/1837579bbc9c5e0b49a54e60d99eed3d38b47d3b.diff
LOG: Apply clang-tidy fixes for readability-simplify-boolean-expr in IntegerRelation.cpp (NFC)
Added:
Modified:
mlir/lib/Analysis/Presburger/IntegerRelation.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Analysis/Presburger/IntegerRelation.cpp b/mlir/lib/Analysis/Presburger/IntegerRelation.cpp
index 2ac271e2e05531..a3f971db4bd428 100644
--- a/mlir/lib/Analysis/Presburger/IntegerRelation.cpp
+++ b/mlir/lib/Analysis/Presburger/IntegerRelation.cpp
@@ -730,9 +730,7 @@ bool IntegerRelation::isEmpty() const {
}
bool IntegerRelation::isObviouslyEmpty() const {
- if (isEmptyByGCDTest() || hasInvalidConstraint())
- return true;
- return false;
+ return isEmptyByGCDTest() || hasInvalidConstraint();
}
// Runs the GCD test on all equality constraints. Returns 'true' if this test
More information about the Mlir-commits
mailing list