[Mlir-commits] [mlir] 0e98fad - [MLIR][Presburger] use braces for single-line loop when inner if uses braces [NFC]
Arjun P
llvmlistbot at llvm.org
Mon Jan 24 14:48:29 PST 2022
Author: Arjun P
Date: 2022-01-25T04:18:20+05:30
New Revision: 0e98fadc79534dde843275fcb142cc6d3a0eee01
URL: https://github.com/llvm/llvm-project/commit/0e98fadc79534dde843275fcb142cc6d3a0eee01
DIFF: https://github.com/llvm/llvm-project/commit/0e98fadc79534dde843275fcb142cc6d3a0eee01.diff
LOG: [MLIR][Presburger] use braces for single-line loop when inner if uses braces [NFC]
Added:
Modified:
mlir/unittests/Analysis/Presburger/IntegerPolyhedronTest.cpp
Removed:
################################################################################
diff --git a/mlir/unittests/Analysis/Presburger/IntegerPolyhedronTest.cpp b/mlir/unittests/Analysis/Presburger/IntegerPolyhedronTest.cpp
index cf68c9265054..683c46ea5c0e 100644
--- a/mlir/unittests/Analysis/Presburger/IntegerPolyhedronTest.cpp
+++ b/mlir/unittests/Analysis/Presburger/IntegerPolyhedronTest.cpp
@@ -635,10 +635,11 @@ static void checkDivisionRepresentation(
// Check that the `dividends` and `expectedDividends` match. If the
// denominator for a division is zero, we ignore its dividend.
EXPECT_TRUE(dividends.size() == expectedDividends.size());
- for (unsigned i = 0, e = dividends.size(); i < e; ++i)
+ for (unsigned i = 0, e = dividends.size(); i < e; ++i) {
if (denominators[i] != 0) {
EXPECT_TRUE(expectedDividends[i] == dividends[i]);
}
+ }
}
TEST(IntegerPolyhedronTest, computeLocalReprSimple) {
More information about the Mlir-commits
mailing list