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

Mehdi Amini llvmlistbot at llvm.org
Fri Apr 17 06:43:17 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))
----------------
joker-eph wrote:

Seems like a separate change to me? Can this be split out in its own PR?

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


More information about the Mlir-commits mailing list