From: Evan Cheng Date: Thu, 17 Dec 2009 18:03:12 +0000 (+0000) Subject: Remove debugging code. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=2013e2c6bdc2ea5d9f9ddc5f3388c9349fb7e467;p=oota-llvm.git Remove debugging code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91604 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp index cae32d3361c..297dd316762 100644 --- a/lib/CodeGen/LLVMTargetMachine.cpp +++ b/lib/CodeGen/LLVMTargetMachine.cpp @@ -31,10 +31,6 @@ namespace llvm { bool EnableFastISel; } -static cl::opt X1("x1"); -static cl::opt X2("x2"); -static cl::opt X3("x3"); -static cl::opt X4("x4"); static cl::opt DisablePostRA("disable-post-ra", cl::Hidden, cl::desc("Disable Post Regalloc")); static cl::opt DisableBranchFold("disable-branch-fold", cl::Hidden, @@ -243,11 +239,6 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM, PM.add(createGVNPass(/*NoPRE=*/false, /*NoLoads=*/true)); } - if (X1) - PM.add(createPrintFunctionPass("\n\n" - "*** Before LSR ***\n", - &errs())); - // Run loop strength reduction before anything else. if (OptLevel != CodeGenOpt::None && !DisableLSR) { PM.add(createLoopStrengthReducePass(getTargetLowering())); @@ -255,11 +246,6 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM, PM.add(createPrintFunctionPass("\n\n*** Code after LSR ***\n", &errs())); } - if (X2) - PM.add(createPrintFunctionPass("\n\n" - "*** After LSR ***\n", - &errs())); - // Turn exception handling constructs into something the code generators can // handle. switch (getMCAsmInfo()->getExceptionHandlingType()) @@ -282,19 +268,9 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM, // Make sure that no unreachable blocks are instruction selected. PM.add(createUnreachableBlockEliminationPass()); - if (X3) - PM.add(createPrintFunctionPass("\n\n" - "*** Before CGP ***\n", - &errs())); - if (OptLevel != CodeGenOpt::None && !DisableCGP) PM.add(createCodeGenPreparePass(getTargetLowering())); - if (X4) - PM.add(createPrintFunctionPass("\n\n" - "*** After CGP ***\n", - &errs())); - PM.add(createStackProtectorPass(getTargetLowering())); if (PrintISelInput)