[llvm-commits] CVS: llvm/lib/CodeGen/RegAllocLinearScan.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Sep 29 19:02:47 PDT 2004



Changes in directory llvm/lib/CodeGen:

RegAllocLinearScan.cpp updated: 1.95 -> 1.96
---
Log message:

Free the VirtRegMap at the end of MachineFunction processing instead of at
the beginning of processing the next one.


---
Diffs of the changes:  (+1 -1)

Index: llvm/lib/CodeGen/RegAllocLinearScan.cpp
diff -u llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.95 llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.96
--- llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.95	Fri Sep  3 13:19:51 2004
+++ llvm/lib/CodeGen/RegAllocLinearScan.cpp	Wed Sep 29 21:02:33 2004
@@ -41,7 +41,6 @@
   static unsigned numIntervals = 0;
 
   class RA : public MachineFunctionPass {
-  private:
     MachineFunction* mf_;
     const TargetMachine* tm_;
     const MRegisterInfo* mri_;
@@ -150,6 +149,7 @@
 
   spiller_->runOnMachineFunction(*mf_, *vrm_);
 
+  vrm_.reset();  // Free the VirtRegMap
   return true;
 }
 






More information about the llvm-commits mailing list