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 | 9e18b6672a46e120c622de6290d5c89157f86748 (patch) | |
tree | 6f3aa1df1e635aeb8ac2c1a9cf1ca1612225e9a3 /llvm/lib/CodeGen | |
parent | cc3aaf18366b46dfe6580e1ef652108d4a665b50 (diff) | |
download | bcm5719-llvm-9e18b6672a46e120c622de6290d5c89157f86748.tar.gz bcm5719-llvm-9e18b6672a46e120c622de6290d5c89157f86748.zip |
Physreg dead defs should be handled too.
llvm-svn: 149118
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/RegisterCoalescer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegisterCoalescer.cpp b/llvm/lib/CodeGen/RegisterCoalescer.cpp index b7d18ba1a14..b1796ab8a9a 100644 --- a/llvm/lib/CodeGen/RegisterCoalescer.cpp +++ b/llvm/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); |