Commit 95ee0b02 authored by Chris Lattner's avatar Chris Lattner
Browse files

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

llvm-svn: 9435
parent 739811da
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -56,8 +56,12 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
  PM.add(createVerifierPass());                  // Verify that input is correct
  addPass(PM, createLowerSetJmpPass());          // Lower llvm.setjmp/.longjmp
  addPass(PM, createFunctionResolvingPass());    // Resolve (...) functions
  addPass(PM, createCFGSimplificationPass());    // Clean up disgusting code
  addPass(PM, createRaiseAllocationsPass());     // call %malloc -> malloc inst
  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

  if (!DisableInline)
+3 −0
Original line number Diff line number Diff line
@@ -68,6 +68,9 @@ GenerateBytecode (Module *M, bool Strip, bool Internalize, std::ostream *Out) {
    Passes.add(createInternalizePass());
  }

  // Propagate constants at call sites into the functions they call.
  Passes.add(createIPConstantPropagationPass());

  // Remove unused arguments from functions...
  Passes.add(createDeadArgEliminationPass());