mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Fix some more LiveInterval enumerations.
Deterministically enumerate the virtual registers instead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158872 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -884,13 +884,11 @@ bool LiveIntervals::shrinkToUses(LiveInterval *li,
|
||||
//
|
||||
|
||||
void LiveIntervals::addKillFlags() {
|
||||
for (iterator I = begin(), E = end(); I != E; ++I) {
|
||||
unsigned Reg = I->first;
|
||||
if (TargetRegisterInfo::isPhysicalRegister(Reg))
|
||||
continue;
|
||||
for (unsigned i = 0, e = MRI->getNumVirtRegs(); i != e; ++i) {
|
||||
unsigned Reg = TargetRegisterInfo::index2VirtReg(i);
|
||||
if (MRI->reg_nodbg_empty(Reg))
|
||||
continue;
|
||||
LiveInterval *LI = I->second;
|
||||
LiveInterval *LI = &getInterval(Reg);
|
||||
|
||||
// Every instruction that kills Reg corresponds to a live range end point.
|
||||
for (LiveInterval::iterator RI = LI->begin(), RE = LI->end(); RI != RE;
|
||||
|
Reference in New Issue
Block a user