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());
 



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to