mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
Clear kill flags while computing live ranges.
Kill flags are difficult to maintain, and liveness queries are better handled by live intervals. Kill flags are reinserted after register allocation by addKillFlags(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163334 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -65,7 +65,11 @@ void LiveRangeCalc::extendToUses(LiveInterval *LI, unsigned Reg) {
|
||||
// Visit all operands that read Reg. This may include partial defs.
|
||||
for (MachineRegisterInfo::reg_nodbg_iterator I = MRI->reg_nodbg_begin(Reg),
|
||||
E = MRI->reg_nodbg_end(); I != E; ++I) {
|
||||
const MachineOperand &MO = I.getOperand();
|
||||
MachineOperand &MO = I.getOperand();
|
||||
// Clear all kill flags. They will be reinserted after register allocation
|
||||
// by LiveIntervalAnalysis::addKillFlags().
|
||||
if (MO.isUse())
|
||||
MO.setIsKill(false);
|
||||
if (!MO.readsReg())
|
||||
continue;
|
||||
// MI is reading Reg. We may have visited MI before if it happens to be
|
||||
|
||||
Reference in New Issue
Block a user