mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-28 21:38:44 +00: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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102976 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1fdc614bee
commit
a50fba933c
@ -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…
x
Reference in New Issue
Block a user