diff options
author | Alexander Shaposhnikov <shal1t712@gmail.com> | 2017-07-04 06:16:53 +0000 |
---|---|---|
committer | Alexander Shaposhnikov <shal1t712@gmail.com> | 2017-07-04 06:16:53 +0000 |
commit | 8b5f0c911174a3e01398a9b4a0d83f2a5e25e756 (patch) | |
tree | 1cf3646632c29e1d3708ae0b4da9730b24584828 /llvm/lib/Transforms | |
parent | ad140cfb689f1bac5bdce3c4af2f26d3fb598b9e (diff) | |
download | bcm5719-llvm-8b5f0c911174a3e01398a9b4a0d83f2a5e25e756.tar.gz bcm5719-llvm-8b5f0c911174a3e01398a9b4a0d83f2a5e25e756.zip |
[tablegen] Avoid creating a temporary vector in getInstructionCase
Record::getValues returns ArrayRef which has a cast operator
to std::vector, as a result a temporary vector is created
if the type of the variable is const std::vector&
that is suboptimal in this case.
Differential revision: https://reviews.llvm.org/D34969
Test plan: make check-all
llvm-svn: 307063
Diffstat (limited to 'llvm/lib/Transforms')
0 files changed, 0 insertions, 0 deletions