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:
parent
8bfd5f99b5
commit
4ef97cf59c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user