mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-10 02:38:50 +00:00
Remove some redundant tests.
An empty list is not represented as a null pointer. Let TRI do its own shortcuts. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157702 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6cf07a80ff
commit
275fd2523e
@ -1766,9 +1766,7 @@ bool MachineInstr::addRegisterDead(unsigned IncomingReg,
|
||||
// There exists a super-register that's marked dead.
|
||||
if (RegInfo->isSuperRegister(IncomingReg, Reg))
|
||||
return true;
|
||||
if (RegInfo->getSubRegisters(IncomingReg) &&
|
||||
RegInfo->getSuperRegisters(Reg) &&
|
||||
RegInfo->isSubRegister(IncomingReg, Reg))
|
||||
if (RegInfo->isSubRegister(IncomingReg, Reg))
|
||||
DeadOps.push_back(i);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user