[llvm] r279233 - [LoopVectorize] Don't copy std::vector in for-range loop.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 19 05:44:25 PDT 2016
Author: d0k
Date: Fri Aug 19 07:44:24 2016
New Revision: 279233
URL: http://llvm.org/viewvc/llvm-project?rev=279233&view=rev
Log:
[LoopVectorize] Don't copy std::vector in for-range loop.
Modified:
llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
Modified: llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp?rev=279233&r1=279232&r2=279233&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp Fri Aug 19 07:44:24 2016
@@ -227,7 +227,7 @@ static bool hasCyclesInLoopBody(const Lo
if (!L.empty())
return true;
- for (const auto SCC :
+ for (const auto &SCC :
make_range(scc_iterator<Loop, LoopBodyTraits>::begin(L),
scc_iterator<Loop, LoopBodyTraits>::end(L))) {
if (SCC.size() > 1) {
More information about the llvm-commits
mailing list