[X86] LowerBuildVectorv16i8 - pull out repeated getOperand() call. NFCI.

llvm-svn: 365270
This commit is contained in:
Simon Pilgrim 2019-07-06 18:33:29 +00:00
parent 9c68aa33e3
commit 01f1bad618

View File

@ -7237,11 +7237,11 @@ static SDValue LowerBuildVectorv16i8(SDValue Op, unsigned NonZeros,
}
if (NextIsNonZero) {
SDValue NextElt;
SDValue NextElt = Op.getOperand(i + 1);
if (i == 0 && NumZero)
NextElt = DAG.getZExtOrTrunc(Op.getOperand(i+1), dl, MVT::i32);
NextElt = DAG.getZExtOrTrunc(NextElt, dl, MVT::i32);
else
NextElt = DAG.getAnyExtOrTrunc(Op.getOperand(i+1), dl, MVT::i32);
NextElt = DAG.getAnyExtOrTrunc(NextElt, dl, MVT::i32);
NextElt = DAG.getNode(ISD::SHL, dl, MVT::i32, NextElt,
DAG.getConstant(8, dl, MVT::i8));
if (ThisIsNonZero)