[all-commits] [llvm/llvm-project] b3417d: [TableGen] Change std::vector to SmallVector
Nadav Rotem via All-commits
all-commits at lists.llvm.org
Thu Jul 16 11:33:18 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: b3417d80aed708d64e810ed9c5d0d0fb84b65715
https://github.com/llvm/llvm-project/commit/b3417d80aed708d64e810ed9c5d0d0fb84b65715
Author: Nadav Rotem <nadav256 at gmail.com>
Date: 2020-07-16 (Thu, 16 Jul 2020)
Changed paths:
M llvm/utils/TableGen/CodeGenDAGPatterns.h
Log Message:
-----------
[TableGen] Change std::vector to SmallVector
The size of VTList that is pushed into this container is usually 1, but
often 6 or 7. Change the vector to SmallVector to eliminate frequent
mallocs. This happens hundreds of thousands of times in each tablegen
execution during the LLVM/clang build.
https://reviews.llvm.org/D83849
More information about the All-commits
mailing list