summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/VirtRegMap.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-02-28 06:02:14 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-02-28 06:02:14 +0000
commit398dee1c4acc44bd68328344bb4b2f6fc55dab53 (patch)
tree73ffe7067b656e7e6aa2014d413d59427f3c61a3 /llvm/lib/CodeGen/VirtRegMap.cpp
parentf69d09bae5886f8cab9e0539649489868b6991a5 (diff)
downloadbcm5719-llvm-398dee1c4acc44bd68328344bb4b2f6fc55dab53.tar.gz
bcm5719-llvm-398dee1c4acc44bd68328344bb4b2f6fc55dab53.zip
Last commit accidentially deleted this code.
llvm-svn: 65679
Diffstat (limited to 'llvm/lib/CodeGen/VirtRegMap.cpp')
-rw-r--r--llvm/lib/CodeGen/VirtRegMap.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/VirtRegMap.cpp b/llvm/lib/CodeGen/VirtRegMap.cpp
index 0103e2042f3..461d839f1c0 100644
--- a/llvm/lib/CodeGen/VirtRegMap.cpp
+++ b/llvm/lib/CodeGen/VirtRegMap.cpp
@@ -1637,6 +1637,10 @@ void LocalSpiller::RewriteMBB(MachineBasicBlock &MBB, VirtRegMap &VRM,
PotentialDeadStoreSlots.push_back(ReuseSlot);
}
+ // Assumes this is the last use. IsKill will be unset if reg is reused
+ // unless it's a two-address operand.
+ if (ti == -1)
+ MI.getOperand(i).setIsKill();
continue;
} // CanReuse
OpenPOWER on IntegriCloud