mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
[regallocfast] Make sure the MachineRegisterInfo is aware of clobbers from a
register masks. This is an obvious and necessary fix for a soon to be committed patch. No test case possible at this time. Reviewed by Jakob. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167498 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -956,6 +956,11 @@ void RAFast::AllocateBasicBlock() {
|
||||
bool hasPhysDefs = false;
|
||||
for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
|
||||
MachineOperand &MO = MI->getOperand(i);
|
||||
// Make sure MRI knows about registers clobbered by regmasks.
|
||||
if (MO.isRegMask()) {
|
||||
MRI->addPhysRegsUsedFromRegMask(MO.getRegMask());
|
||||
continue;
|
||||
}
|
||||
if (!MO.isReg()) continue;
|
||||
unsigned Reg = MO.getReg();
|
||||
if (!Reg) continue;
|
||||
|
Reference in New Issue
Block a user