forked from OSchip/llvm-project
parent
f1add5e0b7
commit
a8bdf5328d
|
@ -184,12 +184,11 @@ HexagonTargetLowering::buildHvxVectorReg(ArrayRef<SDValue> Values,
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned NumWords = Words.size();
|
unsigned NumWords = Words.size();
|
||||||
bool IsUndef = true, IsSplat = true;
|
bool IsSplat = true;
|
||||||
SDValue SplatV;
|
SDValue SplatV;
|
||||||
for (unsigned i = 0; i != NumWords && IsSplat; ++i) {
|
for (unsigned i = 0; i != NumWords && IsSplat; ++i) {
|
||||||
if (isUndef(Words[i]))
|
if (isUndef(Words[i]))
|
||||||
continue;
|
continue;
|
||||||
IsUndef = false;
|
|
||||||
if (!SplatV.getNode())
|
if (!SplatV.getNode())
|
||||||
SplatV = Words[i];
|
SplatV = Words[i];
|
||||||
else if (SplatV != Words[i])
|
else if (SplatV != Words[i])
|
||||||
|
|
Loading…
Reference in New Issue