mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-25 21:16:19 +00:00
Remove some redundant tests.
An empty list is not represented as a null pointer. Let TRI do its own shortcuts. llvm-svn: 157702
This commit is contained in:
parent
3578c169bf
commit
0bc2a65aad
@ -1766,9 +1766,7 @@ bool MachineInstr::addRegisterDead(unsigned IncomingReg,
|
|||||||
// There exists a super-register that's marked dead.
|
// There exists a super-register that's marked dead.
|
||||||
if (RegInfo->isSuperRegister(IncomingReg, Reg))
|
if (RegInfo->isSuperRegister(IncomingReg, Reg))
|
||||||
return true;
|
return true;
|
||||||
if (RegInfo->getSubRegisters(IncomingReg) &&
|
if (RegInfo->isSubRegister(IncomingReg, Reg))
|
||||||
RegInfo->getSuperRegisters(Reg) &&
|
|
||||||
RegInfo->isSubRegister(IncomingReg, Reg))
|
|
||||||
DeadOps.push_back(i);
|
DeadOps.push_back(i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user