mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
Improve some comments explaining the "handle kills" stuff better.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47395 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -296,6 +296,7 @@ void LiveVariables::addRegisterKills(unsigned Reg, MachineInstr *MI,
|
|||||||
/// last def/use of the register, or
|
/// last def/use of the register, or
|
||||||
/// - The register has sub-registers and none of them are killed elsewhere.
|
/// - The register has sub-registers and none of them are killed elsewhere.
|
||||||
///
|
///
|
||||||
|
/// SubKills is filled with the set of sub-registers that are killed elsewhere.
|
||||||
bool LiveVariables::HandlePhysRegKill(unsigned Reg, const MachineInstr *RefMI,
|
bool LiveVariables::HandlePhysRegKill(unsigned Reg, const MachineInstr *RefMI,
|
||||||
SmallSet<unsigned, 4> &SubKills) {
|
SmallSet<unsigned, 4> &SubKills) {
|
||||||
const unsigned *SubRegs = RegInfo->getImmediateSubRegisters(Reg);
|
const unsigned *SubRegs = RegInfo->getImmediateSubRegisters(Reg);
|
||||||
@ -320,8 +321,9 @@ bool LiveVariables::HandlePhysRegKill(unsigned Reg, const MachineInstr *RefMI,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// HandlePhysRegKill - Calls the recursive version of HandlePhysRegKill. (See
|
/// HandlePhysRegKill - Returns true if the whole register is killed in the
|
||||||
/// above for details.)
|
/// machine instruction. If only some of its sub-registers are killed in this
|
||||||
|
/// machine instruction, then mark those as killed and return false.
|
||||||
bool LiveVariables::HandlePhysRegKill(unsigned Reg, MachineInstr *RefMI) {
|
bool LiveVariables::HandlePhysRegKill(unsigned Reg, MachineInstr *RefMI) {
|
||||||
SmallSet<unsigned, 4> SubKills;
|
SmallSet<unsigned, 4> SubKills;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user