1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

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 dd726895b3
commit ac8acca571

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])