mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-09 10:31:14 +00:00
Minor bug.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36473 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b9d0c2a6a0
commit
8e29b2192b
@ -281,7 +281,7 @@ void LiveVariables::HandlePhysRegDef(unsigned Reg, MachineInstr *MI) {
|
|||||||
// Add implicit use / kill to last use of a sub-register.
|
// Add implicit use / kill to last use of a sub-register.
|
||||||
addRegisterKilled(Reg, PhysRegPartUse[Reg], true);
|
addRegisterKilled(Reg, PhysRegPartUse[Reg], true);
|
||||||
else
|
else
|
||||||
addRegisterDead(Reg, LastRef, true);
|
addRegisterDead(Reg, LastRef);
|
||||||
}
|
}
|
||||||
PhysRegInfo[Reg] = MI;
|
PhysRegInfo[Reg] = MI;
|
||||||
PhysRegUsed[Reg] = false;
|
PhysRegUsed[Reg] = false;
|
||||||
@ -294,7 +294,7 @@ void LiveVariables::HandlePhysRegDef(unsigned Reg, MachineInstr *MI) {
|
|||||||
addRegisterKilled(SubReg, LastRef);
|
addRegisterKilled(SubReg, LastRef);
|
||||||
else if (PhysRegPartUse[SubReg])
|
else if (PhysRegPartUse[SubReg])
|
||||||
// Add implicit use / kill to last use of a sub-register.
|
// Add implicit use / kill to last use of a sub-register.
|
||||||
addRegisterKilled(SubReg, PhysRegPartUse[SubReg]);
|
addRegisterKilled(SubReg, PhysRegPartUse[SubReg], true);
|
||||||
else
|
else
|
||||||
addRegisterDead(SubReg, LastRef);
|
addRegisterDead(SubReg, LastRef);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user