[X86] combineX86ShufflesRecursively - use enumerate to iterate over shuffle operands. NFC.
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index d720aad..56b0f72 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -41117,8 +41117,7 @@
// Peek through vector widenings and set out of bounds mask indices to undef.
// TODO: Can resolveTargetShuffleInputsAndMask do some of this?
- for (unsigned I = 0, E = Ops.size(); I != E; ++I) {
- SDValue &Op = Ops[I];
+ for (auto [I, Op] : enumerate(Ops)) {
if (Op.getOpcode() == ISD::INSERT_SUBVECTOR && Op.getOperand(0).isUndef() &&
isNullConstant(Op.getOperand(2))) {
Op = Op.getOperand(1);