diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2008-03-21 19:09:30 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2008-03-21 19:09:30 +0000 |
| commit | 8c19af1b7e1746aae6e5a24455a53a2f1b742956 (patch) | |
| tree | 72db995a7355fbc91b2adecc5b49c9fcad58a18b /llvm/lib/CodeGen/VirtRegMap.cpp | |
| parent | fb7c88de775c412dae8cd3807377757e89552138 (diff) | |
| download | bcm5719-llvm-8c19af1b7e1746aae6e5a24455a53a2f1b742956.tar.gz bcm5719-llvm-8c19af1b7e1746aae6e5a24455a53a2f1b742956.zip | |
A couple of kill marker maintainence bug.
llvm-svn: 48653
Diffstat (limited to 'llvm/lib/CodeGen/VirtRegMap.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/VirtRegMap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/VirtRegMap.cpp b/llvm/lib/CodeGen/VirtRegMap.cpp index b094412ae85..f89ef9a8b5d 100644 --- a/llvm/lib/CodeGen/VirtRegMap.cpp +++ b/llvm/lib/CodeGen/VirtRegMap.cpp @@ -610,7 +610,7 @@ static void UpdateKills(MachineInstr &MI, BitVector &RegKills, if (Reg == 0) continue; - if (RegKills[Reg]) { + if (RegKills[Reg] && KillOps[Reg]->getParent() != &MI) { // That can't be right. Register is killed but not re-defined and it's // being reused. Let's fix that. KillOps[Reg]->setIsKill(false); |

