[llvm-commits] [llvm] r149118 - /llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp

Lang Hames lhames at gmail.com
Thu Jan 26 19:20:42 PST 2012


Author: lhames
Date: Thu Jan 26 21:20:42 2012
New Revision: 149118

URL: http://llvm.org/viewvc/llvm-project?rev=149118&view=rev
Log:
Physreg dead defs should be handled too.

Modified:
    llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp

Modified: llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp?rev=149118&r1=149117&r2=149118&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp Thu Jan 26 21:20:42 2012
@@ -1931,8 +1931,8 @@
           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);





More information about the llvm-commits mailing list