Skip to content

Commit 5b9f877

Browse files
authored
Revert "Fixed wrong check OperationEquivalenceTest.HashWorksWithFlags (#142210)"
This reverts commit ab77a70.
1 parent ccc4163 commit 5b9f877

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/unittests/IR/OperationSupportTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,10 +350,10 @@ TEST(OperationEquivalenceTest, HashWorksWithFlags) {
350350
auto req2 = b.getI32IntegerAttr(60);
351351
Operation *opWithProperty2 = b.create<test::OpAttrMatch1>(
352352
b.getUnknownLoc(), req2, nullptr, nullptr, req2);
353+
EXPECT_NE(getHash(op1, OperationEquivalence::None),
354+
getHash(op2, OperationEquivalence::None));
353355
EXPECT_EQ(getHash(opWithProperty1, OperationEquivalence::IgnoreProperties),
354356
getHash(opWithProperty2, OperationEquivalence::IgnoreProperties));
355-
EXPECT_NE(getHash(opWithProperty1, OperationEquivalence::None),
356-
getHash(opWithProperty2, OperationEquivalence::None));
357357
opWithProperty1->destroy();
358358
opWithProperty2->destroy();
359359
}

0 commit comments

Comments
 (0)