Replace std::copy with a back inserter with vector append where feasible
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 28 Feb 2015 10:11:12 +0000 (10:11 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 28 Feb 2015 10:11:12 +0000 (10:11 +0000)
commit31fbd9f7b00356d2128b644b99dc8f9d7f32e976
treef28b18ca349c88d73dca9347740830ca663d894f
parent12d1e53db88a9d68f75b6ff42b59669c7adec7b1
Replace std::copy with a back inserter with vector append where feasible

All of the cases were just appending from random access iterators to a
vector. Using insert/append can grow the vector to the perfect size
directly and moves the growing out of the loop. No intended functionalty
change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230845 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/IntervalIterator.h
lib/CodeGen/Analysis.cpp
lib/CodeGen/IfConversion.cpp
lib/CodeGen/PeepholeOptimizer.cpp
lib/DebugInfo/DWARF/DWARFDebugLoc.cpp
lib/Target/X86/X86InstrInfo.cpp
lib/Transforms/Scalar/SROA.cpp
utils/TableGen/AsmMatcherEmitter.cpp