Turn on the IPCP pass by default. It has passed all of the tests

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9435 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-10-23 18:25:57 +00:00
parent af19f2e52c
commit eaa35bb794
2 changed files with 7 additions and 0 deletions

View File

@ -56,8 +56,12 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
PM.add(createVerifierPass()); // Verify that input is correct PM.add(createVerifierPass()); // Verify that input is correct
addPass(PM, createLowerSetJmpPass()); // Lower llvm.setjmp/.longjmp addPass(PM, createLowerSetJmpPass()); // Lower llvm.setjmp/.longjmp
addPass(PM, createFunctionResolvingPass()); // Resolve (...) functions addPass(PM, createFunctionResolvingPass()); // Resolve (...) functions
addPass(PM, createCFGSimplificationPass()); // Clean up disgusting code
addPass(PM, createRaiseAllocationsPass()); // call %malloc -> malloc inst addPass(PM, createRaiseAllocationsPass()); // call %malloc -> malloc inst
addPass(PM, createGlobalDCEPass()); // Remove unused globals addPass(PM, createGlobalDCEPass()); // Remove unused globals
addPass(PM, createIPConstantPropagationPass());// IP Constant Propagation
addPass(PM, createDeadArgEliminationPass()); // Dead argument elimination
addPass(PM, createPruneEHPass()); // Remove dead EH info addPass(PM, createPruneEHPass()); // Remove dead EH info
if (!DisableInline) if (!DisableInline)

View File

@ -68,6 +68,9 @@ GenerateBytecode (Module *M, bool Strip, bool Internalize, std::ostream *Out) {
Passes.add(createInternalizePass()); Passes.add(createInternalizePass());
} }
// Propagate constants at call sites into the functions they call.
Passes.add(createIPConstantPropagationPass());
// Remove unused arguments from functions... // Remove unused arguments from functions...
Passes.add(createDeadArgEliminationPass()); Passes.add(createDeadArgEliminationPass());