[Mlir-commits] [mlir] [mlir] Support full commutative operation equality (PR #192652)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sun Apr 19 01:43:21 PDT 2026


================
@@ -893,9 +897,9 @@ OperationEquivalence::isRegionEquivalentTo(Region *lhs, Region *rhs,
 
   // 4. Compare regions.
   for (auto regionPair : llvm::zip(lhs->getRegions(), rhs->getRegions()))
-    if (!isRegionEquivalentTo(&std::get<0>(regionPair),
-                              &std::get<1>(regionPair), checkEquivalent,
-                              markEquivalent, flags))
+    if (!isRegionEquivalentTo(
+            &std::get<0>(regionPair), &std::get<1>(regionPair), checkEquivalent,
+            markEquivalent, flags, checkCommutativeEquivalent))
----------------
jumerckx wrote:

Rebased this branch on top of main.

https://github.com/llvm/llvm-project/pull/192652


More information about the Mlir-commits mailing list