[llvm-commits] [parallel] CVS: llvm/tools/gccld/GenerateCode.cpp

Misha Brukman brukman at cs.uiuc.edu
Wed Mar 10 19:05:30 PST 2004


Changes in directory llvm/tools/gccld:

GenerateCode.cpp updated: 1.17.2.1 -> 1.17.2.2

---
Log message:

Merge from trunk.

---
Diffs of the changes:  (+4 -0)

Index: llvm/tools/gccld/GenerateCode.cpp
diff -u llvm/tools/gccld/GenerateCode.cpp:1.17.2.1 llvm/tools/gccld/GenerateCode.cpp:1.17.2.2
--- llvm/tools/gccld/GenerateCode.cpp:1.17.2.1	Mon Mar  1 17:59:18 2004
+++ llvm/tools/gccld/GenerateCode.cpp	Wed Mar 10 19:04:03 2004
@@ -111,6 +111,10 @@
     if (!DisableInline)
       addPass(Passes, createFunctionInliningPass()); // Inline small functions
 
+    // If we didn't decide to inline a function, check to see if we can
+    // transform it to pass arguments by value instead of by reference.
+    addPass(Passes, createArgumentPromotionPass());
+
     // The IPO passes may leave cruft around.  Clean up after them.
     addPass(Passes, createInstructionCombiningPass());
 





More information about the llvm-commits mailing list