diff options
author | Chris Lattner <sabre@nondot.org> | 2004-09-30 02:02:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-09-30 02:02:33 +0000 |
commit | ddd5229f3b211e59588f8a82e0be4570a5697d5f (patch) | |
tree | 1e581cb1c58a6b1fa7e656852c0f686928a23205 /llvm/lib/CodeGen/RegAllocLinearScan.cpp | |
parent | e2b77d57c0c136f36293d7951470359d3148f710 (diff) | |
download | bcm5719-llvm-ddd5229f3b211e59588f8a82e0be4570a5697d5f.tar.gz bcm5719-llvm-ddd5229f3b211e59588f8a82e0be4570a5697d5f.zip |
Free the VirtRegMap at the end of MachineFunction processing instead of at
the beginning of processing the next one.
llvm-svn: 16605
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocLinearScan.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocLinearScan.cpp b/llvm/lib/CodeGen/RegAllocLinearScan.cpp index eda105f10ca..2a5898a89d0 100644 --- a/llvm/lib/CodeGen/RegAllocLinearScan.cpp +++ b/llvm/lib/CodeGen/RegAllocLinearScan.cpp @@ -41,7 +41,6 @@ namespace { static unsigned numIntervals = 0; class RA : public MachineFunctionPass { - private: MachineFunction* mf_; const TargetMachine* tm_; const MRegisterInfo* mri_; @@ -150,6 +149,7 @@ bool RA::runOnMachineFunction(MachineFunction &fn) { spiller_->runOnMachineFunction(*mf_, *vrm_); + vrm_.reset(); // Free the VirtRegMap return true; } |