[X86][SSE] Use range loop. NFCI.

llvm-svn: 267349
This commit is contained in:
Simon Pilgrim 2016-04-24 16:33:35 +00:00
parent efea6dbc6c
commit 7c25ef92a3
1 changed files with 2 additions and 3 deletions

View File

@ -4730,9 +4730,8 @@ static bool getTargetShuffleMaskIndices(SDValue MaskNode,
if ((VT.getScalarSizeInBits() % MaskEltSizeInBits) != 0) if ((VT.getScalarSizeInBits() % MaskEltSizeInBits) != 0)
return false; return false;
for (int i = 0, e = MaskNode.getNumOperands(); i < e; ++i) { for (SDValue Op : MaskNode->ops()) {
SDValue Op = MaskNode.getOperand(i); if (Op.isUndef()) {
if (Op->isUndef()) {
RawMask.push_back((uint64_t)SM_SentinelUndef); RawMask.push_back((uint64_t)SM_SentinelUndef);
continue; continue;
} }