[llvm] r300334 - Use range for
Sanjoy Das via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 14 08:50:19 PDT 2017
Author: sanjoy
Date: Fri Apr 14 10:50:19 2017
New Revision: 300334
URL: http://llvm.org/viewvc/llvm-project?rev=300334&view=rev
Log:
Use range for
Modified:
llvm/trunk/lib/Analysis/ScalarEvolutionNormalization.cpp
Modified: llvm/trunk/lib/Analysis/ScalarEvolutionNormalization.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ScalarEvolutionNormalization.cpp?rev=300334&r1=300333&r2=300334&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ScalarEvolutionNormalization.cpp (original)
+++ llvm/trunk/lib/Analysis/ScalarEvolutionNormalization.cpp Fri Apr 14 10:50:19 2017
@@ -120,9 +120,7 @@ const SCEV *PostIncTransform::TransformI
SmallVector<const SCEV *, 8> Operands;
bool Changed = false;
// Transform each operand.
- for (SCEVNAryExpr::op_iterator I = X->op_begin(), E = X->op_end();
- I != E; ++I) {
- const SCEV *O = *I;
+ for (auto *O : X->operands()) {
const SCEV *N = TransformSubExpr(O);
Changed |= N != O;
Operands.push_back(N);
More information about the llvm-commits
mailing list