[PowerPC] Remove redundant code.

The local variable Hi is never being read.

Issue identified by the Clang static analyzer.

llvm-svn: 252600
This commit is contained in:
Tilmann Scheller 2015-11-10 12:29:37 +00:00
parent 00e780e1cc
commit 990a8d88c8
1 changed files with 2 additions and 3 deletions

View File

@ -564,7 +564,6 @@ static unsigned SelectInt64CountDirect(int64_t Imm) {
// Handle first 32 bits.
unsigned Lo = Imm & 0xFFFF;
unsigned Hi = (Imm >> 16) & 0xFFFF;
// Simple value.
if (isInt<16>(Imm)) {
@ -586,9 +585,9 @@ static unsigned SelectInt64CountDirect(int64_t Imm) {
++Result;
// Add in the last bits as required.
if ((Hi = (Remainder >> 16) & 0xFFFF))
if ((Remainder >> 16) & 0xFFFF)
++Result;
if ((Lo = Remainder & 0xFFFF))
if (Remainder & 0xFFFF)
++Result;
return Result;