Remove set but unused variable IsUndef.

llvm-svn: 323295
This commit is contained in:
Eric Christopher 2018-01-24 01:51:57 +00:00
parent f1add5e0b7
commit a8bdf5328d
1 changed files with 1 additions and 2 deletions

View File

@ -184,12 +184,11 @@ HexagonTargetLowering::buildHvxVectorReg(ArrayRef<SDValue> Values,
}
unsigned NumWords = Words.size();
bool IsUndef = true, IsSplat = true;
bool IsSplat = true;
SDValue SplatV;
for (unsigned i = 0; i != NumWords && IsSplat; ++i) {
if (isUndef(Words[i]))
continue;
IsUndef = false;
if (!SplatV.getNode())
SplatV = Words[i];
else if (SplatV != Words[i])