[llvm-commits] [regalloc_linearscan] CVS: llvm/lib/CodeGen/RegAllocLinearScan.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Thu Oct 2 02:27:01 PDT 2003
Changes in directory llvm/lib/CodeGen:
RegAllocLinearScan.cpp updated: 1.1.2.1 -> 1.1.2.2
---
Log message:
Merge-in from main
---
Diffs of the changes:
Index: llvm/lib/CodeGen/RegAllocLinearScan.cpp
diff -u llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.1.2.1 llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.1.2.2
--- llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.1.2.1 Tue Sep 30 14:55:02 2003
+++ llvm/lib/CodeGen/RegAllocLinearScan.cpp Thu Oct 2 02:26:01 2003
@@ -5,9 +5,13 @@
//===--------------------------------------------------------------------===//
#define DEBUG_TYPE "regalloc"
-
+#include "llvm/CodeGen/Passes.h"
+#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/Target/MRegisterInfo.h"
#include "llvm/Target/TargetMachine.h"
+#include "Support/Debug.h"
+#include "Support/Statistic.h"
+#include <iostream>
namespace {
Statistic<> NumSpilled ("ra-linearscan", "Number of registers spilled");
@@ -18,7 +22,6 @@
MachineFunction *MF;
const TargetMachine *TM;
const MRegisterInfo *RegInfo;
- LiveVariables* LV;
// StackSlotForVirtReg - Maps virtual regs to the frame index where these
// values are spilled.
@@ -39,7 +42,6 @@
return "Linear Scan Register Allocator";
}
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
- AU.addRequired<LiveVariables>();
AU.addRequiredID(PHIEliminationID);
MachineFunctionPass::getAnalysisUsage(AU);
}
@@ -58,7 +60,6 @@
TM = &Fn.getTarget();
RegInfo = TM->getRegisterInfo();
- LV = &getAnalysis<LiveVariables>();
// compute live intervals
// liner scan algorithm
More information about the llvm-commits
mailing list