diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-05-03 23:49:20 +0000 |
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-05-03 23:49:20 +0000 |
| commit | b944b39887229761138a3ef86b1d4a29adc6cef1 (patch) | |
| tree | 0ca48deed3a66f63ef497a21db05994070afca18 /llvm/lib/CodeGen/RegAllocLocal.cpp | |
| parent | 626b5d8e0ce71b2db461beb6af453bc46a018a48 (diff) | |
| download | bcm5719-llvm-b944b39887229761138a3ef86b1d4a29adc6cef1.tar.gz bcm5719-llvm-b944b39887229761138a3ef86b1d4a29adc6cef1.zip | |
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.
llvm-svn: 102976
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocLocal.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/RegAllocLocal.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocLocal.cpp b/llvm/lib/CodeGen/RegAllocLocal.cpp index 920ba5732ad..94456d14385 100644 --- a/llvm/lib/CodeGen/RegAllocLocal.cpp +++ b/llvm/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; |

