[LiveVariables] Replace std::vector with SmallVector.
authorNadav Rotem <nadav256@gmail.com>
Thu, 16 Jul 2020 00:12:48 +0000 (17:12 -0700)
committerNadav Rotem <nadav256@gmail.com>
Thu, 16 Jul 2020 18:39:54 +0000 (11:39 -0700)
commita394aa1b974bd320242569e5bed53284010cfa63
tree92e2a48156427c1bc2c02cea17f8ed09085200f8
parentecb2e5bcd7e616f62a8c61722ee8d4033c78e32e
[LiveVariables] Replace std::vector with SmallVector.

Replace std::vector with SmallVector to reduce the number of mallocs.
This method is frequently executed, and the number of elements in the
vector is typically small.

https://reviews.llvm.org/D83920
llvm/include/llvm/CodeGen/LiveVariables.h
llvm/lib/CodeGen/LiveVariables.cpp