diff options
| author | Christian Ulmann <christianulmann@gmail.com> | 2025-08-25 13:46:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-25 13:46:13 +0200 |
| commit | 58953b8ef56a41feeaf976e22aeda3ee5acce481 (patch) | |
| tree | 4a6b43f2051575899c3d98898865e67cd3566914 /mlir/lib/Bytecode/Reader/BytecodeReader.cpp | |
| parent | c6bcc747750527c663379057a507cc40922e5dd1 (diff) | |
| download | llvm-58953b8ef56a41feeaf976e22aeda3ee5acce481.zip llvm-58953b8ef56a41feeaf976e22aeda3ee5acce481.tar.gz llvm-58953b8ef56a41feeaf976e22aeda3ee5acce481.tar.bz2 | |
Revert "[MLIR] Fix duplicated attribute nodes in MLIR bytecode deserialization (#151267) (#155214)
This reverts commit c075fb8c37856365fb76d986ad3aefa2400b3240. This
commit introduces a caching bug that causes undesired collisions.
Diffstat (limited to 'mlir/lib/Bytecode/Reader/BytecodeReader.cpp')
| -rw-r--r-- | mlir/lib/Bytecode/Reader/BytecodeReader.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/mlir/lib/Bytecode/Reader/BytecodeReader.cpp b/mlir/lib/Bytecode/Reader/BytecodeReader.cpp index 0f97443..44458d0 100644 --- a/mlir/lib/Bytecode/Reader/BytecodeReader.cpp +++ b/mlir/lib/Bytecode/Reader/BytecodeReader.cpp @@ -895,10 +895,6 @@ private: SmallVector<AttrEntry> attributes; SmallVector<TypeEntry> types; - /// The map of cached attributes, used to avoid re-parsing the same - /// attribute multiple times. - llvm::StringMap<Attribute> attributesCache; - /// A location used for error emission. Location fileLoc; @@ -1239,7 +1235,7 @@ LogicalResult AttrTypeReader::parseAsmEntry(T &result, EncodingReader &reader, ::parseType(asmStr, context, &numRead, /*isKnownNullTerminated=*/true); else result = ::parseAttribute(asmStr, context, Type(), &numRead, - /*isKnownNullTerminated=*/true, &attributesCache); + /*isKnownNullTerminated=*/true); if (!result) return failure(); |
