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())
|
if (!O->isDef())
|
||||||
continue;
|
continue;
|
||||||
unsigned Reg = O->getReg();
|
unsigned Reg = O->getReg();
|
||||||
if (Reg == 0)
|
if (!TargetRegisterInfo::isPhysicalRegister(Reg))
|
||||||
continue;
|
continue;
|
||||||
removeReg(Reg);
|
removeReg(Reg);
|
||||||
} else if (O->isRegMask())
|
} else if (O->isRegMask())
|
||||||
@ -61,7 +61,7 @@ void LivePhysRegs::stepBackward(const MachineInstr &MI) {
|
|||||||
if (!O->isReg() || !O->readsReg())
|
if (!O->isReg() || !O->readsReg())
|
||||||
continue;
|
continue;
|
||||||
unsigned Reg = O->getReg();
|
unsigned Reg = O->getReg();
|
||||||
if (Reg == 0)
|
if (!TargetRegisterInfo::isPhysicalRegister(Reg))
|
||||||
continue;
|
continue;
|
||||||
addReg(Reg);
|
addReg(Reg);
|
||||||
}
|
}
|
||||||
@ -77,7 +77,7 @@ void LivePhysRegs::stepForward(const MachineInstr &MI,
|
|||||||
for (ConstMIBundleOperands O(MI); O.isValid(); ++O) {
|
for (ConstMIBundleOperands O(MI); O.isValid(); ++O) {
|
||||||
if (O->isReg()) {
|
if (O->isReg()) {
|
||||||
unsigned Reg = O->getReg();
|
unsigned Reg = O->getReg();
|
||||||
if (Reg == 0)
|
if (!TargetRegisterInfo::isPhysicalRegister(Reg))
|
||||||
continue;
|
continue;
|
||||||
if (O->isDef()) {
|
if (O->isDef()) {
|
||||||
// Note, dead defs are still recorded. The caller should decide how to
|
// Note, dead defs are still recorded. The caller should decide how to
|
||||||
|
Loading…
x
Reference in New Issue
Block a user