[all-commits] [llvm/llvm-project] eee620: [LLParser] Use SmallVector instead of std::vector ...
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Sun Jul 28 01:37:33 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: eee620b890ad7e2e139d44fee95bd5049fa48f5c
https://github.com/llvm/llvm-project/commit/eee620b890ad7e2e139d44fee95bd5049fa48f5c
Author: Kazu Hirata <kazu at google.com>
Date: 2024-07-28 (Sun, 28 Jul 2024)
Changed paths:
M llvm/include/llvm/AsmParser/LLParser.h
M llvm/lib/AsmParser/LLParser.cpp
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list