X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FCodeGen%2FMachineLoopInfo.cpp;h=4e2cfdc4e5689a9bba4069a1c53125fe13c22035;hb=55804a089e7ac26d5a07a9ac38e5dcedad3f2754;hp=b7298e48eefc87bf63d8ec5989a7260087a883c7;hpb=37aa33bc11c01a7142bfa2428a5a4d219b07b6c3;p=oota-llvm.git diff --git a/lib/CodeGen/MachineLoopInfo.cpp b/lib/CodeGen/MachineLoopInfo.cpp index b7298e48eef..4e2cfdc4e56 100644 --- a/lib/CodeGen/MachineLoopInfo.cpp +++ b/lib/CodeGen/MachineLoopInfo.cpp @@ -15,10 +15,9 @@ //===----------------------------------------------------------------------===// #include "llvm/CodeGen/MachineLoopInfo.h" +#include "llvm/Analysis/LoopInfoImpl.h" #include "llvm/CodeGen/MachineDominators.h" #include "llvm/CodeGen/Passes.h" -#include "llvm/Analysis/LoopInfoImpl.h" -#include "llvm/Support/CommandLine.h" #include "llvm/Support/Debug.h" using namespace llvm; @@ -26,10 +25,6 @@ using namespace llvm; template class llvm::LoopBase; template class llvm::LoopInfoBase; -static cl::opt -StableLoopInfo("stable-machine-loops", cl::Hidden, cl::init(false), - cl::desc("Compute a stable loop tree.")); - char MachineLoopInfo::ID = 0; INITIALIZE_PASS_BEGIN(MachineLoopInfo, "machine-loops", "Machine Natural Loop Construction", true, true) @@ -41,10 +36,7 @@ char &llvm::MachineLoopInfoID = MachineLoopInfo::ID; bool MachineLoopInfo::runOnMachineFunction(MachineFunction &) { releaseMemory(); - if (StableLoopInfo) - LI.Analyze(getAnalysis().getBase()); - else - LI.Calculate(getAnalysis().getBase()); // Update + LI.Analyze(getAnalysis().getBase()); return false; } @@ -82,6 +74,8 @@ MachineBasicBlock *MachineLoop::getBottomBlock() { return BotMBB; } +#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) void MachineLoop::dump() const { print(dbgs()); } +#endif