Use range algorithms instead of unpacking begin/end

No functionality change is intended.

llvm-svn: 278417
This commit is contained in:
David Majnemer
2016-08-11 21:15:00 +00:00
parent 1b689da04e
commit 0a16c22846
46 changed files with 137 additions and 153 deletions

View File

@@ -520,7 +520,7 @@ Vectorizer::getVectorizablePrefix(ArrayRef<Instruction *> Chain) {
unsigned ChainIdx, ChainLen;
for (ChainIdx = 0, ChainLen = Chain.size(); ChainIdx < ChainLen; ++ChainIdx) {
Instruction *I = Chain[ChainIdx];
if (!any_of(VectorizableChainInstrs,
if (none_of(VectorizableChainInstrs,
[I](std::pair<Instruction *, unsigned> CI) {
return I == CI.first;
}))