Skip to content

Commit 16fe22d

Browse files
author
Leon Clark
committed
Address comments.
1 parent ec2044a commit 16fe22d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8809,8 +8809,9 @@ static SDValue lowerBuildVectorAsBlend(BuildVectorSDNode *BVOp, SDLoc const &DL,
88098809
if (UniqueOps.size() != 2u)
88108810
return SDValue();
88118811

8812-
SDValue Op0 = *(UniqueOps.begin());
8813-
SDValue Op1 = *(++UniqueOps.begin());
8812+
SDValue Op0 = BVOp->getOperand(0u);
8813+
UniqueOps.erase(Op0);
8814+
SDValue Op1 = *UniqueOps.begin();
88148815

88158816
if (isShuffleFoldableLoad(Op0) || isShuffleFoldableLoad(Op1) ||
88168817
Subtarget.hasAVX2()) {

0 commit comments

Comments
 (0)