Skip to content

Commit 1445072

Browse files
committed
[X86][SSE] Combine EXTRACT_VECTOR_ELT with combineExtractWithShuffle before XFormVExtractWithShuffleIntoLoad
combineExtractWithShuffle can handle more complex shuffles/bitcasts than we can with the equivalent code in XFormVExtractWithShuffleIntoLoad. Mainly a compile time improvement now (combineExtractWithShuffle combines will have always failed late on inside XFormVExtractWithShuffleIntoLoad), and will let us merge combineExtractVectorElt_SSE in a future commit. llvm-svn: 317481
1 parent 13dc13e commit 1445072

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30485,10 +30485,10 @@ static SDValue combineExtractWithShuffle(SDNode *N, SelectionDAG &DAG,
3048530485
static SDValue combineExtractVectorElt(SDNode *N, SelectionDAG &DAG,
3048630486
TargetLowering::DAGCombinerInfo &DCI,
3048730487
const X86Subtarget &Subtarget) {
30488-
if (SDValue NewOp = XFormVExtractWithShuffleIntoLoad(N, DAG, DCI))
30488+
if (SDValue NewOp = combineExtractWithShuffle(N, DAG, DCI, Subtarget))
3048930489
return NewOp;
3049030490

30491-
if (SDValue NewOp = combineExtractWithShuffle(N, DAG, DCI, Subtarget))
30491+
if (SDValue NewOp = XFormVExtractWithShuffleIntoLoad(N, DAG, DCI))
3049230492
return NewOp;
3049330493

3049430494
SDValue InputVector = N->getOperand(0);

0 commit comments

Comments
 (0)