[llvm-commits] CVS: llvm/tools/gccld/GenerateCode.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Sep 9 14:30:27 PDT 2006
Changes in directory llvm/tools/gccld:
GenerateCode.cpp updated: 1.61 -> 1.62
---
Log message:
Move ipsccp pass earlier to clean up obvious bogosities
---
Diffs of the changes: (+5 -3)
GenerateCode.cpp | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
Index: llvm/tools/gccld/GenerateCode.cpp
diff -u llvm/tools/gccld/GenerateCode.cpp:1.61 llvm/tools/gccld/GenerateCode.cpp:1.62
--- llvm/tools/gccld/GenerateCode.cpp:1.61 Wed Aug 23 01:56:27 2006
+++ llvm/tools/gccld/GenerateCode.cpp Sat Sep 9 16:30:13 2006
@@ -220,6 +220,11 @@
// 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());
@@ -227,9 +232,6 @@
// 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());
More information about the llvm-commits
mailing list