[llvm-commits] CVS: llvm/lib/Target/Sparc/SparcTargetMachine.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Tue Jan 13 13:27:02 PST 2004
Changes in directory llvm/lib/Target/Sparc:
SparcTargetMachine.cpp updated: 1.97 -> 1.98
---
Log message:
Remove dump-input option.
Make addPassesToEmitAssembly() look slightly more like addPassesToJITCompile().
---
Diffs of the changes: (+2 -14)
Index: llvm/lib/Target/Sparc/SparcTargetMachine.cpp
diff -u llvm/lib/Target/Sparc/SparcTargetMachine.cpp:1.97 llvm/lib/Target/Sparc/SparcTargetMachine.cpp:1.98
--- llvm/lib/Target/Sparc/SparcTargetMachine.cpp:1.97 Sun Dec 28 15:23:38 2003
+++ llvm/lib/Target/Sparc/SparcTargetMachine.cpp Tue Jan 13 13:26:21 2004
@@ -59,10 +59,6 @@
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 @@
//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 @@
// 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());
More information about the llvm-commits
mailing list