summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/VirtRegMap.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-03-21 19:09:30 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-03-21 19:09:30 +0000
commit8c19af1b7e1746aae6e5a24455a53a2f1b742956 (patch)
tree72db995a7355fbc91b2adecc5b49c9fcad58a18b /llvm/lib/CodeGen/VirtRegMap.cpp
parentfb7c88de775c412dae8cd3807377757e89552138 (diff)
downloadbcm5719-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.cpp2
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);
OpenPOWER on IntegriCloud