[all-commits] [llvm/llvm-project] fb2a97: [Support] Change MapVector's default template para...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Mon Jul 24 22:04:17 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fb2a971c015fa991b47aa8d93bd97379c012cb68
https://github.com/llvm/llvm-project/commit/fb2a971c015fa991b47aa8d93bd97379c012cb68
Author: Fangrui Song <i at maskray.me>
Date: 2023-07-24 (Mon, 24 Jul 2023)
Changed paths:
M lld/MachO/UnwindInfoSection.cpp
M llvm/include/llvm/ADT/MapVector.h
M llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
M mlir/lib/IR/AsmPrinter.cpp
Log Message:
-----------
[Support] Change MapVector's default template parameter to SmallVector<*, 0>
SmallVector<*, 0> is often a better replacement for std::vector :
both the object size and the code size are smaller.
(SmallMapVector uses SmallVector as well, but it is not common.)
clang size decreases by 0.0226%.
instructions:u decreases 0.037% when compiling a sqlite3 amalgram.
Reviewed By: JDevlieghere
Differential Revision: https://reviews.llvm.org/D156016
More information about the All-commits
mailing list