aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
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
commit18a46c348777c36a8fc49e2b40b0a5a8afe2f129 (patch)
tree56bf7fa2c56d977fb721de071d11dce1c80c8ccf /lib/CodeGen
parentdffc974d71224999d7fcb14c6222d0c9bcce2c58 (diff)
downloadexternal_llvm-18a46c348777c36a8fc49e2b40b0a5a8afe2f129.tar.gz
external_llvm-18a46c348777c36a8fc49e2b40b0a5a8afe2f129.tar.bz2
external_llvm-18a46c348777c36a8fc49e2b40b0a5a8afe2f129.zip
Last commit accidentially deleted this code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65679 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/VirtRegMap.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/VirtRegMap.cpp b/lib/CodeGen/VirtRegMap.cpp
index 0103e2042f..461d839f1c 100644
--- a/lib/CodeGen/VirtRegMap.cpp
+++ b/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