Switch register allocator over to using LoopInfo directly instead of indirectly through LoopDepthCalculator
llvm-svn: 1696
diff --git a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
index 8efa757..de8d793 100644
--- a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
+++ b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
@@ -37,7 +37,7 @@
class MachineRegInfo;
class MethodLiveVarInfo;
class MachineInstr;
-namespace cfg { class LoopDepthCalculator; }
+namespace cfg { class LoopInfo; }
//----------------------------------------------------------------------------
// Class AddedInstrns:
@@ -80,13 +80,13 @@
AddedInstrMapType AddedInstrMap; // to store instrns added in this phase
- cfg::LoopDepthCalculator *LoopDepthCalc; // to calculate loop depths
+ cfg::LoopInfo *LoopDepthCalc; // to calculate loop depths
ReservedColorListType ResColList; // A set of reserved regs if desired.
// currently not used
public:
PhyRegAlloc(Method *M, const TargetMachine& TM, MethodLiveVarInfo *Lvi,
- cfg::LoopDepthCalculator *LoopDepthCalc);
+ cfg::LoopInfo *LoopDepthCalc);
~PhyRegAlloc();
// main method called for allocating registers