diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-02-04 18:18:58 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-02-04 18:18:58 +0000 |
commit | 6792e90fec54921fc5ec72f876b80edd47636cd0 (patch) | |
tree | 536412aa4991d8358bac3a8bf3f9d9e6fe45c106 | |
parent | 45f36835470dd95908d579c30ec05b923ec46fe6 (diff) |
Skip over zero registers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63748 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/SimpleRegisterCoalescing.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/SimpleRegisterCoalescing.cpp b/lib/CodeGen/SimpleRegisterCoalescing.cpp index f3ffc69ccc..86dca11519 100644 --- a/lib/CodeGen/SimpleRegisterCoalescing.cpp +++ b/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()) |