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

Chris Lattner lattner at cs.uiuc.edu
Sun Mar 7 20:51:25 PST 2004


Changes in directory llvm/tools/gccld:

GenerateCode.cpp updated: 1.20 -> 1.21

---
Log message:

Run the new pass in gccld now that it passes all tests


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

Index: llvm/tools/gccld/GenerateCode.cpp
diff -u llvm/tools/gccld/GenerateCode.cpp:1.20 llvm/tools/gccld/GenerateCode.cpp:1.21
--- llvm/tools/gccld/GenerateCode.cpp:1.20	Wed Feb 25 21:34:30 2004
+++ llvm/tools/gccld/GenerateCode.cpp	Sun Mar  7 16:12:40 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