Skip to content

Commit 172fe5d

Browse files
committed
[X86] CombineShuffleWithExtract - updated description comments. NFCI.
CombineShuffleWithExtract no longer requires that both shuffle ops are extract_subvectors, from the same type or from the same size. llvm-svn: 364745
1 parent 0f73709 commit 172fe5d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32180,8 +32180,8 @@ static SDValue combineX86ShuffleChain(ArrayRef<SDValue> Inputs, SDValue Root,
3218032180
return DAG.getBitcast(RootVT, Res);
3218132181
}
3218232182

32183-
// If that failed and both inputs are extracted from the same source type
32184-
// then try to combine as an unary shuffle with the larger type.
32183+
// If that failed and either input is extracted then try to combine as a
32184+
// shuffle with the larger type.
3218532185
SDValue NewRoot;
3218632186
SmallVector<int, 64> NewMask;
3218732187
SmallVector<SDValue, 2> NewInputs;
@@ -32360,8 +32360,8 @@ static SDValue combineX86ShuffleChain(ArrayRef<SDValue> Inputs, SDValue Root,
3236032360
return DAG.getBitcast(RootVT, Res);
3236132361
}
3236232362

32363-
// If that failed and both inputs are extracted from the same source type
32364-
// then try to combine as an unary shuffle with the larger type.
32363+
// If that failed and either input is extracted then try to combine as a
32364+
// shuffle with the larger type.
3236532365
SDValue NewRoot;
3236632366
SmallVector<int, 64> NewMask;
3236732367
SmallVector<SDValue, 2> NewInputs;

0 commit comments

Comments
 (0)