[llvm-commits] [llvm] r91604 - /llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp
Evan Cheng
evan.cheng at apple.com
Thu Dec 17 10:03:13 PST 2009
Author: evancheng
Date: Thu Dec 17 12:03:12 2009
New Revision: 91604
URL: http://llvm.org/viewvc/llvm-project?rev=91604&view=rev
Log:
Remove debugging code.
Modified:
llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp
Modified: llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp?rev=91604&r1=91603&r2=91604&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp (original)
+++ llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp Thu Dec 17 12:03:12 2009
@@ -31,10 +31,6 @@
bool EnableFastISel;
}
-static cl::opt<bool> X1("x1");
-static cl::opt<bool> X2("x2");
-static cl::opt<bool> X3("x3");
-static cl::opt<bool> X4("x4");
static cl::opt<bool> DisablePostRA("disable-post-ra", cl::Hidden,
cl::desc("Disable Post Regalloc"));
static cl::opt<bool> DisableBranchFold("disable-branch-fold", cl::Hidden,
@@ -243,11 +239,6 @@
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 @@
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 @@
// 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)
More information about the llvm-commits
mailing list