llvm-project/llvm/lib/AsmParser
Serge Guelton d2cc6c2d0c Use a sorted array instead of a map to store AttrBuilder string attributes
Using and std::map<SmallString, SmallString> for target dependent attributes is
inefficient: it makes its constructor slightly heavier, and involves extra
allocation for each new string attribute. Storing the attribute key/value as
strings implies extra allocation/copy step.

Use a sorted vector instead. Given the low number of attributes generally
involved, this is cheaper, as showcased by

https://llvm-compile-time-tracker.com/compare.php?from=5de322295f4ade692dc4f1823ae4450ad3c48af2&to=05bc480bf641a9e3b466619af43a2d123ee3f71d&stat=instructions

Differential Revision: https://reviews.llvm.org/D116599
2022-01-10 14:49:53 +01:00
..
CMakeLists.txt llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
LLLexer.cpp [llvm][IR] Add no_cfi constant 2021-12-20 12:55:32 -08:00
LLParser.cpp Use a sorted array instead of a map to store AttrBuilder string attributes 2022-01-10 14:49:53 +01:00
Parser.cpp [Lexer] Allow LLLexer to be used as an API 2021-04-26 12:43:14 -04:00