1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

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
This commit is contained in:
Jakob Stoklund Olesen 2010-05-03 23:49:20 +00:00
parent 8bfd5f99b5
commit 4ef97cf59c

View File

@ -644,6 +644,9 @@ void RALocal::ComputeLocalLiveness(MachineBasicBlock& MBB) {
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;