use range-based for loop; NFCI

llvm-svn: 253256
This commit is contained in:
Sanjay Patel 2015-11-16 22:16:52 +00:00
parent 0204e342ca
commit 4e28753140
1 changed files with 2 additions and 2 deletions

View File

@ -586,8 +586,8 @@ static bool CanEvaluateShuffled(Value *V, ArrayRef<int> Mask,
case Instruction::FPTrunc:
case Instruction::FPExt:
case Instruction::GetElementPtr: {
for (int i = 0, e = I->getNumOperands(); i != e; ++i) {
if (!CanEvaluateShuffled(I->getOperand(i), Mask, Depth-1))
for (Value *Operand : I->operands()) {
if (!CanEvaluateShuffled(Operand, Mask, Depth-1))
return false;
}
return true;