summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGAddressAnalysis.cpp
diff options
context:
space:
mode:
authorAlexander Shaposhnikov <shal1t712@gmail.com>2017-07-05 01:20:52 +0000
committerAlexander Shaposhnikov <shal1t712@gmail.com>2017-07-05 01:20:52 +0000
commited37df7ea3ec2abbface106f888e7c7d27a93261 (patch)
tree2c36c25344d9e7fcdf5c14f523a8e1126ca5ba5e /llvm/lib/CodeGen/SelectionDAG/SelectionDAGAddressAnalysis.cpp
parent740f529dba1ff5acc1265bb03bd85014566692e6 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud