[Mlir-commits] [mlir] [mlir]: Added properties/attributes ignore flags to OperationEquivalence (PR #141664)
Krzysztof Drewniak
llvmlistbot at llvm.org
Wed May 28 08:19:47 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();
----------------
krzysz00 wrote:
Yeah, Please verify that this stores only discardable attributes
https://github.com/llvm/llvm-project/pull/141664
More information about the Mlir-commits
mailing list