From: Lang Hames Date: Fri, 27 Jan 2012 03:20:42 +0000 (+0000) Subject: Physreg dead defs should be handled too. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b3396dc0034db4520525e600565337f0929066b4;p=oota-llvm.git Physreg dead defs should be handled too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149118 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/RegisterCoalescer.cpp b/lib/CodeGen/RegisterCoalescer.cpp index b7d18ba1a14..b1796ab8a9a 100644 --- a/lib/CodeGen/RegisterCoalescer.cpp +++ b/lib/CodeGen/RegisterCoalescer.cpp @@ -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);