mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Physreg dead defs should be handled too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149118 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1931,8 +1931,8 @@ bool RegisterCoalescer::runOnMachineFunction(MachineFunction &fn) {
|
|||||||
unsigned Reg = MO.getReg();
|
unsigned Reg = MO.getReg();
|
||||||
if (!Reg)
|
if (!Reg)
|
||||||
continue;
|
continue;
|
||||||
|
DeadDefs.push_back(Reg);
|
||||||
if (TargetRegisterInfo::isVirtualRegister(Reg)) {
|
if (TargetRegisterInfo::isVirtualRegister(Reg)) {
|
||||||
DeadDefs.push_back(Reg);
|
|
||||||
// Remat may also enable register class inflation.
|
// Remat may also enable register class inflation.
|
||||||
if (RegClassInfo.isProperSubClass(MRI->getRegClass(Reg)))
|
if (RegClassInfo.isProperSubClass(MRI->getRegClass(Reg)))
|
||||||
InflateRegs.push_back(Reg);
|
InflateRegs.push_back(Reg);
|
||||||
|
Reference in New Issue
Block a user