Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit 6e1c5e0

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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317481 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent ec1f0cc commit 6e1c5e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)