Skip to content

Commit efce8f1

Browse files
committed
[X86] combineX86ShufflesRecursively - use enumerate to iterate over shuffle operands. NFC.
1 parent 16c84c4 commit efce8f1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41117,8 +41117,7 @@ static SDValue combineX86ShufflesRecursively(
4111741117

4111841118
// Peek through vector widenings and set out of bounds mask indices to undef.
4111941119
// TODO: Can resolveTargetShuffleInputsAndMask do some of this?
41120-
for (unsigned I = 0, E = Ops.size(); I != E; ++I) {
41121-
SDValue &Op = Ops[I];
41120+
for (auto [I, Op] : enumerate(Ops)) {
4112241121
if (Op.getOpcode() == ISD::INSERT_SUBVECTOR && Op.getOperand(0).isUndef() &&
4112341122
isNullConstant(Op.getOperand(2))) {
4112441123
Op = Op.getOperand(1);

0 commit comments

Comments
 (0)