[TableGen] Use vector::append instead of looping and calling push_back. NFC
authorCraig Topper <craig.topper@intel.com>
Tue, 20 Mar 2018 20:24:14 +0000 (20:24 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 20 Mar 2018 20:24:14 +0000 (20:24 +0000)
commit1f57456c78397f13f4150f5fbf1b1355637d1de2
tree37f65c7755f6bb1a9078329d57f108cc5b094aa1
parent1970e9557561b20fe650c7c7e78e77b01af23022
[TableGen] Use vector::append instead of looping and calling push_back. NFC

Both vectors contain unsigned so we can just use append to do the copying. Not only is this shorter, but it should be able to predict the final size and only grow the vector once if needed.

llvm-svn: 328033
llvm/utils/TableGen/CodeGenSchedule.cpp