summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-02-04 18:18:58 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-02-04 18:18:58 +0000
commit9ec370f7489e45947db9449c842b87d773f08ee2 (patch)
treeaa152642e75bd5c7177dab843494f4adbea9fa8d /llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
parent370ec10dad9fb523e472afeda2fd7d20b3db6a72 (diff)
downloadbcm5719-llvm-9ec370f7489e45947db9449c842b87d773f08ee2.tar.gz
bcm5719-llvm-9ec370f7489e45947db9449c842b87d773f08ee2.zip
Skip over zero registers.
llvm-svn: 63748
Diffstat (limited to 'llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp')
-rw-r--r--llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
index f3ffc69cccb..86dca115194 100644
--- a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
+++ b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
@@ -2449,6 +2449,8 @@ bool SimpleRegisterCoalescing::runOnMachineFunction(MachineFunction &fn) {
if (!MO.isReg())
continue;
unsigned Reg = MO.getReg();
+ if (!Reg)
+ continue;
if (TargetRegisterInfo::isVirtualRegister(Reg))
DeadDefs.push_back(Reg);
if (MO.isDead())
OpenPOWER on IntegriCloud