File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -215,8 +215,8 @@ class MLIRContextImpl {
215
215
// / This is a mapping from type name to the abstract type describing it.
216
216
// / It is used by `AbstractType::lookup` to get an `AbstractType` from a name.
217
217
// / As this map needs to be populated before `StringAttr` is loaded, we
218
- // / cannot use `StringAttr` as the key, which would avoid string duplication .
219
- llvm::StringMap< AbstractType *> nameToType;
218
+ // / cannot use `StringAttr` as the key.
219
+ llvm::DenseMap<StringRef, AbstractType *> nameToType;
220
220
221
221
// / Cached Type Instances.
222
222
Float8E5M2Type f8E5M2Ty;
@@ -246,8 +246,8 @@ class MLIRContextImpl {
246
246
// / it. It is used by `AbstractType::lookup` to get an `AbstractType` from a
247
247
// / name.
248
248
// / As this map needs to be populated before `StringAttr` is loaded, we
249
- // / cannot use `StringAttr` as the key, which would avoid string duplication .
250
- llvm::StringMap< AbstractAttribute *> nameToAttribute;
249
+ // / cannot use `StringAttr` as the key.
250
+ llvm::DenseMap<StringRef, AbstractAttribute *> nameToAttribute;
251
251
252
252
// / Cached Attribute Instances.
253
253
BoolAttr falseAttr, trueAttr;
You can’t perform that action at this time.
0 commit comments