diff options
author | Lang Hames <lhames@gmail.com> | 2012-01-27 03:20:42 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2012-01-27 03:20:42 +0000 |
commit | b3396dc0034db4520525e600565337f0929066b4 (patch) | |
tree | 9e8e225a6ac383588a631c4c9c9cb32bc3ce4611 /lib/CodeGen | |
parent | d629efa0642110fbc90c28d4be3da54ffb359750 (diff) | |
download | external_llvm-b3396dc0034db4520525e600565337f0929066b4.zip external_llvm-b3396dc0034db4520525e600565337f0929066b4.tar.gz external_llvm-b3396dc0034db4520525e600565337f0929066b4.tar.bz2 |
Physreg dead defs should be handled too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149118 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/RegisterCoalescer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/RegisterCoalescer.cpp b/lib/CodeGen/RegisterCoalescer.cpp index b7d18ba..b1796ab 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); |