diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-05-13 07:08:07 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-05-13 07:08:07 +0000 |
| commit | 91caf1d039cc77aeff9d6f0076c681c8368df13b (patch) | |
| tree | 9052dcd659021f665b66d17264b78f2d25503c52 /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | |
| parent | 39ec7f049d56eea7475286ad8c073c9924bada28 (diff) | |
| download | bcm5719-llvm-91caf1d039cc77aeff9d6f0076c681c8368df13b.tar.gz bcm5719-llvm-91caf1d039cc77aeff9d6f0076c681c8368df13b.zip | |
allow a virtual register to be associated with live-in values.
llvm-svn: 21927
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp index 405d9ec6504..d75bf3fb0ef 100644 --- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -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); } |

