[Mlir-commits] [mlir] 5e28192 - [MLIR] Apply clang-tidy fixes for readability-simplify-boolean-expr in ValueBoundsOpInterface.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Mon Sep 1 10:44:47 PDT 2025
Author: Mehdi Amini
Date: 2025-09-01T10:44:03-07:00
New Revision: 5e28192fbac7c11205d3cc9e3d18f3670d7cfc7f
URL: https://github.com/llvm/llvm-project/commit/5e28192fbac7c11205d3cc9e3d18f3670d7cfc7f
DIFF: https://github.com/llvm/llvm-project/commit/5e28192fbac7c11205d3cc9e3d18f3670d7cfc7f.diff
LOG: [MLIR] Apply clang-tidy fixes for readability-simplify-boolean-expr in ValueBoundsOpInterface.cpp (NFC)
Added:
Modified:
mlir/lib/Interfaces/ValueBoundsOpInterface.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Interfaces/ValueBoundsOpInterface.cpp b/mlir/lib/Interfaces/ValueBoundsOpInterface.cpp
index c9481fb5d9406..caa909186eb2c 100644
--- a/mlir/lib/Interfaces/ValueBoundsOpInterface.cpp
+++ b/mlir/lib/Interfaces/ValueBoundsOpInterface.cpp
@@ -813,7 +813,7 @@ FailureOr<bool> ValueBoundsConstraintSet::strongCompare(const Variable &lhs,
return false;
// Keep processing as long as the strong relation cannot be proven.
FailureOr<bool> ordered = cstr.strongComparePos(lhsPos, cmp, rhsPos);
- return failed(ordered) ? true : false;
+ return failed(ordered);
};
ValueBoundsConstraintSet cstr(lhs.getContext(), stopCondition);
lhsPos = cstr.populateConstraints(lhs.map, lhs.mapOperands);
More information about the Mlir-commits
mailing list