diff options
author | Alexander Shaposhnikov <shal1t712@gmail.com> | 2017-07-05 01:20:52 +0000 |
---|---|---|
committer | Alexander Shaposhnikov <shal1t712@gmail.com> | 2017-07-05 01:20:52 +0000 |
commit | ed37df7ea3ec2abbface106f888e7c7d27a93261 (patch) | |
tree | 2c36c25344d9e7fcdf5c14f523a8e1126ca5ba5e /llvm/lib/CodeGen/SelectionDAG/SelectionDAGAddressAnalysis.cpp | |
parent | 740f529dba1ff5acc1265bb03bd85014566692e6 (diff) | |
download | bcm5719-llvm-ed37df7ea3ec2abbface106f888e7c7d27a93261.tar.gz bcm5719-llvm-ed37df7ea3ec2abbface106f888e7c7d27a93261.zip |
[profiledata] Avoid creating a temporary vector in getNumValueData
getValueSitesForKind 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/D34970
Test plan: make check-all
llvm-svn: 307113
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGAddressAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions