diff options
author | Nadav Rotem <nadav256@gmail.com> | 2020-07-15 22:36:32 -0700 |
---|---|---|
committer | Nadav Rotem <nadav256@gmail.com> | 2020-07-16 11:32:44 -0700 |
commit | b3417d80aed708d64e810ed9c5d0d0fb84b65715 (patch) | |
tree | f9a65ac10ffdd61cfa9981f21d47ee02f1a80291 /llvm/lib/CodeGen/LiveVariables.cpp | |
parent | 1912ace968766dfeae8f40425b1931ff5371b725 (diff) | |
download | llvm-b3417d80aed708d64e810ed9c5d0d0fb84b65715.zip llvm-b3417d80aed708d64e810ed9c5d0d0fb84b65715.tar.gz llvm-b3417d80aed708d64e810ed9c5d0d0fb84b65715.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/CodeGen/LiveVariables.cpp')
0 files changed, 0 insertions, 0 deletions