mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-13 03:12:46 +00:00
[X86] LowerBuildVectorv16i8 - pull out repeated getOperand() call. NFCI.
llvm-svn: 365270
This commit is contained in:
parent
9c68aa33e3
commit
01f1bad618
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user