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

Alkis Evlogimenos alkis at cs.uiuc.edu
Fri Oct 24 10:51:01 PDT 2003


Changes in directory llvm/lib/CodeGen:

RegAllocLinearScan.cpp updated: 1.1.2.4 -> 1.1.2.5

---
Log message:

Add copyright and make file compile.


---
Diffs of the changes:  (+8 -5)

Index: llvm/lib/CodeGen/RegAllocLinearScan.cpp
diff -u llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.1.2.4 llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.1.2.5
--- llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.1.2.4	Fri Oct 24 01:06:47 2003
+++ llvm/lib/CodeGen/RegAllocLinearScan.cpp	Fri Oct 24 10:50:04 2003
@@ -1,9 +1,14 @@
-//===-- RegAllocLinearScan.cpp - Linear Scan register allocator ---------===//
+//===-- RegAllocLinearScan.cpp - Linear Scan register allocator -----------===//
+// 
+//                     The LLVM Compiler Infrastructure
 //
+// This file was developed by the LLVM research group and is distributed under
+// the University of Illinois Open Source License. See LICENSE.TXT for details.
+// 
+//===----------------------------------------------------------------------===////
 // This file implements a linear scan register allocator.
 //
-//===--------------------------------------------------------------------===//
-
+//===----------------------------------------------------------------------===//
 #define DEBUG_TYPE "regalloc"
 #include "llvm/Function.h"
 #include "llvm/CodeGen/LiveIntervals.h"
@@ -55,7 +60,6 @@
         }
 
         virtual void getAnalysisUsage(AnalysisUsage &AU) const {
-            AU.addRequiredID(PHIEliminationID);
             AU.addRequired<LiveIntervals>();
             MachineFunctionPass::getAnalysisUsage(AU);
         }
@@ -109,7 +113,6 @@
     _tri = &_tm->getRegInfo();
     _mri = _tm->getRegisterInfo();
     _li = &getAnalysis<LiveIntervals>();
-    _p2vMap.resize(_mri->getNumRegs());
     _p2vMap.clear();
     _v2pMap.clear();
     _v2ssMap.clear();





More information about the llvm-commits mailing list