aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-01-13 19:26:21 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-01-13 19:26:21 +0000
commitf9543267413b17efa54f9f0d53be838a69ea2aef (patch)
treed68610e1e3a74254fa3bee3ac438ba41a565c71b /lib
parent0496a43e3979d7db238d1daaed3fbe2704d23fcd (diff)
downloadexternal_llvm-f9543267413b17efa54f9f0d53be838a69ea2aef.zip
external_llvm-f9543267413b17efa54f9f0d53be838a69ea2aef.tar.gz
external_llvm-f9543267413b17efa54f9f0d53be838a69ea2aef.tar.bz2
Remove dump-input option.
Make addPassesToEmitAssembly() look slightly more like addPassesToJITCompile(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10818 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/SparcV9/SparcV9TargetMachine.cpp16
1 files changed, 2 insertions, 14 deletions
diff --git a/lib/Target/SparcV9/SparcV9TargetMachine.cpp b/lib/Target/SparcV9/SparcV9TargetMachine.cpp
index 03de739..f2ff6b0 100644
--- a/lib/Target/SparcV9/SparcV9TargetMachine.cpp
+++ b/lib/Target/SparcV9/SparcV9TargetMachine.cpp
@@ -59,10 +59,6 @@ namespace {
cl::opt<bool> DisableStrip("disable-strip",
cl::desc("Do not strip the LLVM bytecode in executable"));
-
- cl::opt<bool> DumpInput("dump-input",
- cl::desc("Print bytecode before code generation"),
- cl::Hidden);
}
//===---------------------------------------------------------------------===//
@@ -154,25 +150,19 @@ SparcTargetMachine::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out)
//so %fp+offset-8 and %fp+offset-16 are empty slots now!
PM.add(createStackSlotsPass(*this));
- // Specialize LLVM code for this target machine
+ // Specialize LLVM code for this target machine and then
+ // run basic dataflow optimizations on LLVM code.
PM.add(createPreSelectionPass(*this));
- // Run basic dataflow optimizations on LLVM code
PM.add(createReassociatePass());
PM.add(createLICMPass());
PM.add(createGCSEPass());
- // If LLVM dumping after transformations is requested, add it to the pipeline
- if (DumpInput)
- PM.add(new PrintFunctionPass("Input code to instr. selection:\n",
- &std::cerr));
-
PM.add(createInstructionSelectionPass(*this));
if (!DisableSched)
PM.add(createInstructionSchedulingWithSSAPass(*this));
PM.add(getRegisterAllocator(*this));
-
PM.add(createPrologEpilogInsertionPass());
if (!DisablePeephole)
@@ -226,9 +216,7 @@ void SparcJITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
// Specialize LLVM code for this target machine and then
// run basic dataflow optimizations on LLVM code.
PM.add(createPreSelectionPass(TM));
- // Run basic dataflow optimizations on LLVM code
PM.add(createReassociatePass());
-
// FIXME: these passes crash the FunctionPassManager when being added...
//PM.add(createLICMPass());
//PM.add(createGCSEPass());