[Mlir-commits] [mlir] [mlir] Propagate `checkCommutativeEquivalent` into `isRegionEquivalentTo` (PR #192670)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Apr 17 07:59:01 PDT 2026


================
@@ -893,9 +893,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:

I might be mistaken actually, looks like the testing setup does allow for testing. I'll update this pr in a bit.

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


More information about the Mlir-commits mailing list