[Mlir-commits] [mlir] [mlir]: Added properties/attributes ignore flags to OperationEquivalence (PR #141664)

Aviad Cohen llvmlistbot at llvm.org
Thu May 29 01:44:25 PDT 2025


================
@@ -680,9 +680,14 @@ llvm::hash_code OperationEquivalence::computeHash(
   //   - Operation Name
   //   - Attributes
   //   - Result Types
-  llvm::hash_code hash =
-      llvm::hash_combine(op->getName(), op->getRawDictionaryAttrs(),
-                         op->getResultTypes(), op->hashProperties());
+  DictionaryAttr dictAttrs;
+  if (!(flags & Flags::IgnoreDictionaryAttrs))
+    dictAttrs = op->getRawDictionaryAttrs();
----------------
AviadCo wrote:

Ack, renamed

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


More information about the Mlir-commits mailing list