diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-12-11 02:09:15 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-12-11 02:09:15 +0000 |
commit | 303417d24261bd89d615de6bc5e96eac2302aafd (patch) | |
tree | 7bf9e5b6a1b8557f949908f24753576e86ed6c95 /llvm/lib/CodeGen/RegAllocLinearScan.cpp | |
parent | f54030231e7c6588970252a51702adfb603eebd6 (diff) | |
download | bcm5719-llvm-303417d24261bd89d615de6bc5e96eac2302aafd.tar.gz bcm5719-llvm-303417d24261bd89d615de6bc5e96eac2302aafd.zip |
Switch over to MachineLoopInfo.
llvm-svn: 44838
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocLinearScan.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/RegAllocLinearScan.cpp b/llvm/lib/CodeGen/RegAllocLinearScan.cpp index ad9c5ec0519..5d6673804d6 100644 --- a/llvm/lib/CodeGen/RegAllocLinearScan.cpp +++ b/llvm/lib/CodeGen/RegAllocLinearScan.cpp @@ -16,9 +16,9 @@ #include "PhysRegTracker.h" #include "VirtRegMap.h" #include "llvm/Function.h" -#include "llvm/Analysis/LoopInfo.h" #include "llvm/CodeGen/MachineFunctionPass.h" #include "llvm/CodeGen/MachineInstr.h" +#include "llvm/CodeGen/MachineLoopInfo.h" #include "llvm/CodeGen/Passes.h" #include "llvm/CodeGen/RegAllocRegistry.h" #include "llvm/CodeGen/RegisterCoalescer.h" @@ -67,7 +67,7 @@ namespace { SSARegMap *regmap_; BitVector allocatableRegs_; LiveIntervals* li_; - const LoopInfo *loopInfo; + const MachineLoopInfo *loopInfo; /// handled_ - Intervals are added to the handled_ set in the order of their /// start value. This is uses for backtracking. @@ -103,7 +103,7 @@ namespace { // Make sure PassManager knows which analyses to make available // to coalescing and which analyses coalescing invalidates. AU.addRequiredTransitive<RegisterCoalescer>(); - AU.addRequired<LoopInfo>(); + AU.addRequired<MachineLoopInfo>(); MachineFunctionPass::getAnalysisUsage(AU); } @@ -254,7 +254,7 @@ bool RALinScan::runOnMachineFunction(MachineFunction &fn) { regmap_ = mf_->getSSARegMap(); allocatableRegs_ = mri_->getAllocatableSet(fn); li_ = &getAnalysis<LiveIntervals>(); - loopInfo = &getAnalysis<LoopInfo>(); + loopInfo = &getAnalysis<MachineLoopInfo>(); // We don't run the coalescer here because we have no reason to // interact with it. If the coalescer requires interaction, it |