mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-23 20:57:21 +00:00
Only track physical registers in LivePhysRegs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283561 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a7de0c7962
commit
5cbeeedeaa
@ -49,7 +49,7 @@ void LivePhysRegs::stepBackward(const MachineInstr &MI) {
|
||||
if (!O->isDef())
|
||||
continue;
|
||||
unsigned Reg = O->getReg();
|
||||
if (Reg == 0)
|
||||
if (!TargetRegisterInfo::isPhysicalRegister(Reg))
|
||||
continue;
|
||||
removeReg(Reg);
|
||||
} else if (O->isRegMask())
|
||||
@ -61,7 +61,7 @@ void LivePhysRegs::stepBackward(const MachineInstr &MI) {
|
||||
if (!O->isReg() || !O->readsReg())
|
||||
continue;
|
||||
unsigned Reg = O->getReg();
|
||||
if (Reg == 0)
|
||||
if (!TargetRegisterInfo::isPhysicalRegister(Reg))
|
||||
continue;
|
||||
addReg(Reg);
|
||||
}
|
||||
@ -77,7 +77,7 @@ void LivePhysRegs::stepForward(const MachineInstr &MI,
|
||||
for (ConstMIBundleOperands O(MI); O.isValid(); ++O) {
|
||||
if (O->isReg()) {
|
||||
unsigned Reg = O->getReg();
|
||||
if (Reg == 0)
|
||||
if (!TargetRegisterInfo::isPhysicalRegister(Reg))
|
||||
continue;
|
||||
if (O->isDef()) {
|
||||
// Note, dead defs are still recorded. The caller should decide how to
|
||||
|
Loading…
x
Reference in New Issue
Block a user