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 | 712ad0c36dcfacb30620c793a6ffe4e80bd5d569 (patch) | |
| tree | 26f8920823e50da06d9f443a3f44dbe0f4e89f3f /lib/CodeGen/LiveVariables.cpp | |
| parent | fe07581d789c0a1b329dd8956e3b68e71ae9fcfa (diff) | |
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
Diffstat (limited to 'lib/CodeGen/LiveVariables.cpp')
| -rw-r--r-- | lib/CodeGen/LiveVariables.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/CodeGen/LiveVariables.cpp b/lib/CodeGen/LiveVariables.cpp index 94380ff542..c11e00f0c8 100644 --- a/lib/CodeGen/LiveVariables.cpp +++ b/lib/CodeGen/LiveVariables.cpp @@ -165,11 +165,11 @@ bool LiveVariables::runOnMachineFunction(MachineFunction &MF) { VirtRegInfo.resize(64); // Mark live-in registers as live-in. - for (MachineFunction::liveinout_iterator I = MF.livein_begin(), + for (MachineFunction::livein_iterator I = MF.livein_begin(), E = MF.livein_end(); I != E; ++I) { - assert(MRegisterInfo::isPhysicalRegister(*I) && + assert(MRegisterInfo::isPhysicalRegister(I->first) && "Cannot have a live-in virtual register!"); - HandlePhysRegDef(*I, 0); + HandlePhysRegDef(I->first, 0); } // Calculate live variable information in depth first order on the CFG of the @@ -272,7 +272,7 @@ bool LiveVariables::runOnMachineFunction(MachineFunction &MF) { // it as using all of the live-out values in the function. if (!MBB->empty() && TII.isReturn(MBB->back().getOpcode())) { MachineInstr *Ret = &MBB->back(); - for (MachineFunction::liveinout_iterator I = MF.liveout_begin(), + for (MachineFunction::liveout_iterator I = MF.liveout_begin(), E = MF.liveout_end(); I != E; ++I) { assert(MRegisterInfo::isPhysicalRegister(*I) && "Cannot have a live-in virtual register!"); |
