[llvm-commits] CVS: llvm/tools/gccas/gccas.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Aug 31 16:47:01 PDT 2003
Changes in directory llvm/tools/gccas:
gccas.cpp updated: 1.68 -> 1.69
---
Log message:
* move the dead-type-eliminate passes to the end, where they are more useful
* add prune-eh and inlining passes
* other minor pass reorganizations
---
Diffs of the changes:
Index: llvm/tools/gccas/gccas.cpp
diff -u llvm/tools/gccas/gccas.cpp:1.68 llvm/tools/gccas/gccas.cpp:1.69
--- llvm/tools/gccas/gccas.cpp:1.68 Thu Aug 7 16:30:12 2003
+++ llvm/tools/gccas/gccas.cpp Sun Aug 31 16:45:55 2003
@@ -62,17 +62,20 @@
void AddConfiguredTransformationPasses(PassManager &PM) {
PM.add(createVerifierPass()); // Verify that input is correct
addPass(PM, createFunctionResolvingPass()); // Resolve (...) functions
- addPass(PM, createGlobalDCEPass()); // Kill unused uinit g-vars
- addPass(PM, createDeadTypeEliminationPass()); // Eliminate dead types
- addPass(PM, createConstantMergePass()); // Merge dup global constants
addPass(PM, createRaiseAllocationsPass()); // call %malloc -> malloc inst
+ addPass(PM, createGlobalDCEPass()); // Remove unused globals
+ addPass(PM, createPruneEHPass()); // Remove dead EH info
+ addPass(PM, createFunctionInliningPass()); // Inline small functions
+
addPass(PM, createInstructionCombiningPass()); // Cleanup code for raise
addPass(PM, createRaisePointerReferencesPass());// Recover type information
addPass(PM, createTailDuplicationPass()); // Simplify cfg by copying code
addPass(PM, createCFGSimplificationPass()); // Merge & remove BBs
- addPass(PM, createInstructionCombiningPass()); // Combine silly seq's
addPass(PM, createScalarReplAggregatesPass()); // Break up aggregate allocas
addPass(PM, createPromoteMemoryToRegister()); // Promote alloca's to regs
+ addPass(PM, createInstructionCombiningPass()); // Combine silly seq's
+
+
addPass(PM, createIndVarSimplifyPass()); // Simplify indvars
addPass(PM, createReassociatePass()); // Reassociate expressions
addPass(PM, createInstructionCombiningPass()); // Combine silly seq's
@@ -87,6 +90,8 @@
addPass(PM, createInstructionCombiningPass());
addPass(PM, createAggressiveDCEPass()); // SSA based 'Aggressive DCE'
addPass(PM, createCFGSimplificationPass()); // Merge & remove BBs
+ addPass(PM, createDeadTypeEliminationPass()); // Eliminate dead types
+ addPass(PM, createConstantMergePass()); // Merge dup global constants
}
More information about the llvm-commits
mailing list