[llvm] [NFC] Use more efficient data structures in SubtargetEmitter (PR #102090)

Tomas Matheson via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 5 23:38:50 PDT 2024


================
@@ -260,7 +260,7 @@ unsigned SubtargetEmitter::FeatureKeyValues(
   llvm::sort(FeatureList, LessRecordFieldName());
 
   // Check that there are no duplicate keys
-  std::set<StringRef> UniqueKeys;
+  llvm::StringSet<> UniqueKeys;
----------------
tmatheson-arm wrote:

What's the advantage of this?

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


More information about the llvm-commits mailing list