mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
allow a virtual register to be associated with live-in values.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21927 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -95,7 +95,7 @@ bool LiveIntervals::runOnMachineFunction(MachineFunction &fn) {
|
||||
// beginning of the function that we will pretend "defines" the values. This
|
||||
// is to make the interval analysis simpler by providing a number.
|
||||
if (fn.livein_begin() != fn.livein_end()) {
|
||||
unsigned FirstLiveIn = *fn.livein_begin();
|
||||
unsigned FirstLiveIn = fn.livein_begin()->first;
|
||||
|
||||
// Find a reg class that contains this live in.
|
||||
const TargetRegisterClass *RC = 0;
|
||||
@@ -128,11 +128,11 @@ bool LiveIntervals::runOnMachineFunction(MachineFunction &fn) {
|
||||
// Note intervals due to live-in values.
|
||||
if (fn.livein_begin() != fn.livein_end()) {
|
||||
MachineBasicBlock *Entry = fn.begin();
|
||||
for (MachineFunction::liveinout_iterator I = fn.livein_begin(),
|
||||
for (MachineFunction::livein_iterator I = fn.livein_begin(),
|
||||
E = fn.livein_end(); I != E; ++I) {
|
||||
handlePhysicalRegisterDef(Entry, Entry->begin(),
|
||||
getOrCreateInterval(*I), 0, 0);
|
||||
for (const unsigned* AS = mri_->getAliasSet(*I); *AS; ++AS)
|
||||
getOrCreateInterval(I->first), 0, 0);
|
||||
for (const unsigned* AS = mri_->getAliasSet(I->first); *AS; ++AS)
|
||||
handlePhysicalRegisterDef(Entry, Entry->begin(),
|
||||
getOrCreateInterval(*AS), 0, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user