[llvm] [NFC][TableGen] Emit more readable builtin string table. (PR #105445)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 21 06:33:52 PDT 2024
================
@@ -637,15 +636,17 @@ void IntrinsicEmitter::EmitIntrinsicToBuiltinMap(
// Populate the string table with the names of all the builtins after
// removing this common prefix.
- StringToOffsetTable Table;
+ SequenceToOffsetTable<StringRef> Table;
----------------
s-barannikov wrote:
Did you measure the performance impact of this change?
StringToOffsetTable uses StringMap, which should be more efficient than std::map used by SequenceToOffsetTable.
https://github.com/llvm/llvm-project/pull/105445
More information about the llvm-commits
mailing list