From 1911a0203d171e3d164c17de6ed3f5f6c61441ed Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Wed, 20 Jun 2012 23:47:58 +0000 Subject: Remove the RenderMachineFunction HTML output pass. I don't think anyone has been using this functionality for a while, and it is getting in the way of refactoring now. llvm-svn: 158876 --- llvm/lib/CodeGen/RegAllocBasic.cpp | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'llvm/lib/CodeGen/RegAllocBasic.cpp') diff --git a/llvm/lib/CodeGen/RegAllocBasic.cpp b/llvm/lib/CodeGen/RegAllocBasic.cpp index 9c893d37949..3a03807ebd0 100644 --- a/llvm/lib/CodeGen/RegAllocBasic.cpp +++ b/llvm/lib/CodeGen/RegAllocBasic.cpp @@ -16,7 +16,6 @@ #include "AllocationOrder.h" #include "RegAllocBase.h" #include "LiveDebugVariables.h" -#include "RenderMachineFunction.h" #include "Spiller.h" #include "VirtRegMap.h" #include "LiveRegMatrix.h" @@ -66,11 +65,6 @@ class RABasic : public MachineFunctionPass, public RegAllocBase // context MachineFunction *MF; -#ifndef NDEBUG - // analyses - RenderMachineFunction *RMF; -#endif - // state std::auto_ptr SpillerInstance; std::priority_queue, @@ -140,7 +134,6 @@ RABasic::RABasic(): MachineFunctionPass(ID) { initializeMachineLoopInfoPass(*PassRegistry::getPassRegistry()); initializeVirtRegMapPass(*PassRegistry::getPassRegistry()); initializeLiveRegMatrixPass(*PassRegistry::getPassRegistry()); - initializeRenderMachineFunctionPass(*PassRegistry::getPassRegistry()); } void RABasic::getAnalysisUsage(AnalysisUsage &AU) const { @@ -163,7 +156,6 @@ void RABasic::getAnalysisUsage(AnalysisUsage &AU) const { AU.addPreserved(); AU.addRequired(); AU.addPreserved(); - DEBUG(AU.addRequired()); MachineFunctionPass::getAnalysisUsage(AU); } @@ -284,8 +276,6 @@ bool RABasic::runOnMachineFunction(MachineFunction &mf) { << ((Value*)mf.getFunction())->getName() << '\n'); MF = &mf; - DEBUG(RMF = &getAnalysis()); - RegAllocBase::init(getAnalysis(), getAnalysis(), getAnalysis()); @@ -296,9 +286,6 @@ bool RABasic::runOnMachineFunction(MachineFunction &mf) { // Diagnostic output before rewriting DEBUG(dbgs() << "Post alloc VirtRegMap:\n" << *VRM << "\n"); - // optional HTML output - DEBUG(RMF->renderMachineFunction("After basic register allocation.", VRM)); - releaseMemory(); return true; } -- cgit v1.2.3