Physreg dead defs should be handled too.

llvm-svn: 149118
This commit is contained in:
Lang Hames 2012-01-27 03:20:42 +00:00
parent cc3aaf1836
commit 9e18b6672a
1 changed files with 1 additions and 1 deletions

View File

@ -1931,8 +1931,8 @@ bool RegisterCoalescer::runOnMachineFunction(MachineFunction &fn) {
unsigned Reg = MO.getReg();
if (!Reg)
continue;
DeadDefs.push_back(Reg);
if (TargetRegisterInfo::isVirtualRegister(Reg)) {
DeadDefs.push_back(Reg);
// Remat may also enable register class inflation.
if (RegClassInfo.isProperSubClass(MRI->getRegClass(Reg)))
InflateRegs.push_back(Reg);