[llvm-mca] Use a SmallVector instead of std::vector to track register reads/writes...
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Thu, 22 Nov 2018 14:48:53 +0000 (14:48 +0000)
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Thu, 22 Nov 2018 14:48:53 +0000 (14:48 +0000)
commit13e1d20755d6427f713d59c74c9dc9476c21ca74
treece43c2c417c16efdd4f9e4937bd4c46bde131162
parenta6144db15fdfdd6a0895cec0d915a7d6f3edb697
[llvm-mca] Use a SmallVector instead of std::vector to track register reads/writes. NFCI

This avoids a heap allocation most of the times.
This patch gives a small but consistent 3% speedup on a release build (up to ~5%
on a debug build).

llvm-svn: 347464
llvm/tools/llvm-mca/include/Instruction.h
llvm/tools/llvm-mca/lib/Instruction.cpp