mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Remove unnecessary isKill properties if a live range has been lengthened due to coalescing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34503 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -172,6 +172,13 @@ namespace llvm {
|
||||
}
|
||||
|
||||
private:
|
||||
/// isRemoved - returns true if the specified machine instr has been
|
||||
/// removed.
|
||||
bool isRemoved(MachineInstr* instr) const {
|
||||
Mi2IndexMap::const_iterator it = mi2iMap_.find(instr);
|
||||
return it == mi2iMap_.end();
|
||||
}
|
||||
|
||||
/// RemoveMachineInstrFromMaps - This marks the specified machine instr as
|
||||
/// deleted.
|
||||
void RemoveMachineInstrFromMaps(MachineInstr *MI) {
|
||||
@@ -256,6 +263,10 @@ namespace llvm {
|
||||
/// reg between indexes Start and End.
|
||||
bool hasRegisterUse(unsigned Reg, unsigned Start, unsigned End);
|
||||
|
||||
/// unsetRegisterKill - Unset IsKill property of all uses of specific
|
||||
/// register of the specific instruction.
|
||||
void unsetRegisterKill(MachineInstr *MI, unsigned Reg);
|
||||
|
||||
static LiveInterval createInterval(unsigned Reg);
|
||||
|
||||
void removeInterval(unsigned Reg) {
|
||||
|
||||
Reference in New Issue
Block a user