aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-02-04 17:48:00 +0000
committerChris Lattner <sabre@nondot.org>2002-02-04 17:48:00 +0000
commit14ab1ce0209343b0e2c424ab8ba32261d4474349 (patch)
tree4bba58bc6d16782d629895bc54aa97c2d1ed5514 /lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
parent4911c357e14a6972e7614c52ed87302b280f7c30 (diff)
Switch register allocator over to using LoopInfo directly instead of indirectly through LoopDepthCalculator
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1696 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAlloc/PhyRegAlloc.cpp')
-rw-r--r--lib/CodeGen/RegAlloc/PhyRegAlloc.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp b/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
index 946a1e9c1b..1ce41fda43 100644
--- a/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
+++ b/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
@@ -15,7 +15,7 @@
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineCodeForMethod.h"
#include "llvm/Analysis/LiveVar/MethodLiveVarInfo.h"
-#include "llvm/Analysis/LoopDepth.h"
+#include "llvm/Analysis/LoopInfo.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/MachineFrameInfo.h"
#include "llvm/Method.h"
@@ -52,7 +52,7 @@ namespace {
LVI.analyze();
PhyRegAlloc PRA(M, Target, &LVI,
- &getAnalysis<cfg::LoopDepthCalculator>());
+ &getAnalysis<cfg::LoopInfo>());
PRA.allocateRegisters();
if (DEBUG_RA) cerr << "\nRegister allocation complete!\n";
@@ -62,7 +62,7 @@ namespace {
virtual void getAnalysisUsageInfo(Pass::AnalysisSet &Requires,
Pass::AnalysisSet &Destroyed,
Pass::AnalysisSet &Provided) {
- Requires.push_back(cfg::LoopDepthCalculator::ID);
+ Requires.push_back(cfg::LoopInfo::ID);
}
};
}
@@ -77,7 +77,7 @@ MethodPass *getRegisterAllocator(TargetMachine &T) {
PhyRegAlloc::PhyRegAlloc(Method *M,
const TargetMachine& tm,
MethodLiveVarInfo *Lvi,
- cfg::LoopDepthCalculator *LDC)
+ cfg::LoopInfo *LDC)
: TM(tm), Meth(M),
mcInfo(MachineCodeForMethod::get(M)),
LVI(Lvi), LRI(M, tm, RegClassList),