[llvm-commits] [llvm] r63748 - /llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp

Evan Cheng evan.cheng at apple.com
Wed Feb 4 10:18:58 PST 2009


Author: evancheng
Date: Wed Feb  4 12:18:58 2009
New Revision: 63748

URL: http://llvm.org/viewvc/llvm-project?rev=63748&view=rev
Log:
Skip over zero registers.

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

Modified: llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp?rev=63748&r1=63747&r2=63748&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp (original)
+++ llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp Wed Feb  4 12:18:58 2009
@@ -2449,6 +2449,8 @@
           if (!MO.isReg())
             continue;
           unsigned Reg = MO.getReg();
+          if (!Reg)
+            continue;
           if (TargetRegisterInfo::isVirtualRegister(Reg))
             DeadDefs.push_back(Reg);
           if (MO.isDead())





More information about the llvm-commits mailing list