Files
clang-p2996/llvm/lib/AsmParser/LLParser.cpp
Kazu Hirata eee620b890 [LLParser] Use SmallVector instead of std::vector (#100916)
The use of SmallVector here saves 1.03% of heap allocations during the
compilation of X86ISelLowering.cpp.ll, a .ll version of
X86ISelLowering.cpp.  The 8 inline elements cover greater than 99% of
invocations encountered here.

While I am it, the patch changes the parameter type to ArrayRef to
allow callers to use any vector type.
2024-07-28 01:37:12 -07:00

352 KiB