// internal.
addPass(Passes, createInternalizePass(Internalize));
// internal.
addPass(Passes, createInternalizePass(Internalize));
+ // Propagate constants at call sites into the functions they call. This
+ // opens opportunities for globalopt (and inlining) by substituting function
+ // pointers passed as arguments to direct uses of functions.
+ addPass(Passes, createIPSCCPPass());
+
// Now that we internalized some globals, see if we can hack on them!
addPass(Passes, createGlobalOptimizerPass());
// Now that we internalized some globals, see if we can hack on them!
addPass(Passes, createGlobalOptimizerPass());
// keep one copy of each constant...
addPass(Passes, createConstantMergePass());
// keep one copy of each constant...
addPass(Passes, createConstantMergePass());
- // Propagate constants at call sites into the functions they call.
- addPass(Passes, createIPSCCPPass());
-
// Remove unused arguments from functions...
addPass(Passes, createDeadArgEliminationPass());
// Remove unused arguments from functions...
addPass(Passes, createDeadArgEliminationPass());