Skip to content

Commit 95136f6

Browse files
author
Leon Clark
committed
Address comments.
1 parent 1dadc11 commit 95136f6

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
@@ -8765,16 +8765,16 @@ static SDValue lowerBuildVectorAsBlend(BuildVectorSDNode *BVOp, SDLoc const &DL,
87658765
if (UniqueOps.size() != 2u)
87668766
return SDValue();
87678767
// Create shuffle mask.
8768-
SDValue Op0 = BVOp->getOperand(0u);
8768+
SDValue Op0 = *(UniqueOps.begin());
8769+
SDValue Op1 = *(++UniqueOps.begin());
87698770
SmallVector<int, 16u> Mask(NumElems);
87708771
for (auto I = 0u; I < NumElems; ++I) {
87718772
SDValue Op = BVOp->getOperand(I);
87728773
Mask[I] = Op == Op0 ? I : I + NumElems;
87738774
}
87748775
// Create shuffle of splats.
8775-
8776-
SDValue NewOp0 = DAG.getSplatBuildVector(VT, DL, *UniqueOps.begin());
8777-
SDValue NewOp1 = DAG.getSplatBuildVector(VT, DL, *(++UniqueOps.begin()));
8776+
SDValue NewOp0 = DAG.getSplatBuildVector(VT, DL, Op0);
8777+
SDValue NewOp1 = DAG.getSplatBuildVector(VT, DL, Op1);
87788778
return DAG.getVectorShuffle(VT, DL, NewOp0, NewOp1, Mask);
87798779
}
87808780

0 commit comments

Comments
 (0)