Skip to content

Commit 975f4d8

Browse files
author
Leon Clark
committed
Address comments.
1 parent 379f6c6 commit 975f4d8

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
@@ -8769,8 +8769,9 @@ static SDValue lowerBuildVectorAsBlend(BuildVectorSDNode *BVOp, SDLoc const &DL,
87698769
if (UniqueOps.size() != 2u)
87708770
return SDValue();
87718771

8772-
SDValue Op0 = *(UniqueOps.begin());
8773-
SDValue Op1 = *(++UniqueOps.begin());
8772+
SDValue Op0 = BVOp->getOperand(0u);
8773+
UniqueOps.erase(Op0);
8774+
SDValue Op1 = *UniqueOps.begin();
87748775

87758776
if (isShuffleFoldableLoad(Op0) || isShuffleFoldableLoad(Op1) ||
87768777
Subtarget.hasAVX2()) {

0 commit comments

Comments
 (0)