Skip to content

Commit 3672823

Browse files
author
Leon Clark
committed
Address comments.
1 parent c4c99d8 commit 3672823

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
@@ -8805,16 +8805,16 @@ static SDValue lowerBuildVectorAsBlend(BuildVectorSDNode *BVOp, SDLoc const &DL,
88058805
if (UniqueOps.size() != 2u)
88068806
return SDValue();
88078807
// Create shuffle mask.
8808-
SDValue Op0 = BVOp->getOperand(0u);
8808+
SDValue Op0 = *(UniqueOps.begin());
8809+
SDValue Op1 = *(++UniqueOps.begin());
88098810
SmallVector<int, 16u> Mask(NumElems);
88108811
for (auto I = 0u; I < NumElems; ++I) {
88118812
SDValue Op = BVOp->getOperand(I);
88128813
Mask[I] = Op == Op0 ? I : I + NumElems;
88138814
}
88148815
// Create shuffle of splats.
8815-
8816-
SDValue NewOp0 = DAG.getSplatBuildVector(VT, DL, *UniqueOps.begin());
8817-
SDValue NewOp1 = DAG.getSplatBuildVector(VT, DL, *(++UniqueOps.begin()));
8816+
SDValue NewOp0 = DAG.getSplatBuildVector(VT, DL, Op0);
8817+
SDValue NewOp1 = DAG.getSplatBuildVector(VT, DL, Op1);
88188818
return DAG.getVectorShuffle(VT, DL, NewOp0, NewOp1, Mask);
88198819
}
88208820

0 commit comments

Comments
 (0)