mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
Require non-NULL register masks.
It doesn't seem worthwhile to give meaning to a NULL register mask pointer. It complicates all the code using register mask operands. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149646 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -175,10 +175,7 @@ bool DeadMachineInstructionElim::runOnMachineFunction(MachineFunction &MF) {
|
||||
}
|
||||
} else if (MO.isRegMask()) {
|
||||
// Register mask of preserved registers. All clobbers are dead.
|
||||
if (const uint32_t *Mask = MO.getRegMask())
|
||||
LivePhysRegs.clearBitsNotInMask(Mask);
|
||||
else
|
||||
LivePhysRegs.reset();
|
||||
LivePhysRegs.clearBitsNotInMask(MO.getRegMask());
|
||||
LivePhysRegs |= ReservedRegs;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user