aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/RegAllocLocal.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-05-03 23:49:20 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-05-03 23:49:20 +0000
commit9551919e6c3146ff0bce6843ff2c382558d7ea01 (patch)
treedeee93e8e8453be55f69d1ca1592f34406f01b56 /lib/CodeGen/RegAllocLocal.cpp
parent080b7d4073d554d405f9fd81d5a5bee529f755e6 (diff)
downloadexternal_llvm-9551919e6c3146ff0bce6843ff2c382558d7ea01.zip
external_llvm-9551919e6c3146ff0bce6843ff2c382558d7ea01.tar.gz
external_llvm-9551919e6c3146ff0bce6843ff2c382558d7ea01.tar.bz2
Remove preexisting kill flags in RegAllocLocal, just like LiveVariables does.
This should make it possible to start producing kill flags in isel without breaking stuff. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102976 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocLocal.cpp')
-rw-r--r--lib/CodeGen/RegAllocLocal.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocLocal.cpp b/lib/CodeGen/RegAllocLocal.cpp
index 920ba57..94456d1 100644
--- a/lib/CodeGen/RegAllocLocal.cpp
+++ b/lib/CodeGen/RegAllocLocal.cpp
@@ -643,7 +643,10 @@ void RALocal::ComputeLocalLiveness(MachineBasicBlock& MBB) {
// uses regs before it defs them.
if (!MO.isReg() || !MO.getReg() || !MO.isUse())
continue;
-
+
+ // Ignore helpful kill flags from earlier passes.
+ MO.setIsKill(false);
+
LastUseDef[MO.getReg()] = std::make_pair(I, i);
if (TargetRegisterInfo::isVirtualRegister(MO.getReg())) continue;