[llvm-commits] CVS: llvm/tools/gccas/gccas.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Jun 22 15:12:01 PDT 2003
Changes in directory llvm/tools/gccas:
gccas.cpp updated: 1.65 -> 1.66
---
Log message:
Add tail duplication pass to the pipeline, move the verifier pass to the front
Other minor reorganizations
---
Diffs of the changes:
Index: llvm/tools/gccas/gccas.cpp
diff -u llvm/tools/gccas/gccas.cpp:1.65 llvm/tools/gccas/gccas.cpp:1.66
--- llvm/tools/gccas/gccas.cpp:1.65 Fri May 30 14:24:06 2003
+++ llvm/tools/gccas/gccas.cpp Sun Jun 22 15:11:45 2003
@@ -60,18 +60,16 @@
void AddConfiguredTransformationPasses(PassManager &PM) {
- if (Verify) PM.add(createVerifierPass());
-
+ 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, createCFGSimplificationPass()); // Merge & remove BBs
- addPass(PM, createVerifierPass()); // Verify that input is correct
- addPass(PM, createDeadInstEliminationPass()); // Remove Dead code/vars
addPass(PM, createRaiseAllocationsPass()); // call %malloc -> malloc inst
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
@@ -88,7 +86,7 @@
// Run instcombine after redundancy elimination to exploit opportunities
// opened up by them.
addPass(PM, createInstructionCombiningPass());
- addPass(PM, createAggressiveDCEPass()); // SSA based 'Agressive DCE'
+ addPass(PM, createAggressiveDCEPass()); // SSA based 'Aggressive DCE'
addPass(PM, createCFGSimplificationPass()); // Merge & remove BBs
}
More information about the llvm-commits
mailing list