mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
Handle regmasks in FixupKills.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151226 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c892aeb266
commit
f19a5926cb
@ -461,6 +461,10 @@ void SchedulePostRATDList::FixupKills(MachineBasicBlock *MBB) {
|
||||
// are completely defined.
|
||||
for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
|
||||
MachineOperand &MO = MI->getOperand(i);
|
||||
if (MO.isRegMask())
|
||||
for (unsigned i = 0, e = TRI->getNumRegs(); i != e; ++i)
|
||||
if (MO.clobbersPhysReg(i))
|
||||
KillIndices[i] = ~0u;
|
||||
if (!MO.isReg()) continue;
|
||||
unsigned Reg = MO.getReg();
|
||||
if (Reg == 0) continue;
|
||||
|
Loading…
Reference in New Issue
Block a user