From f8338c4375b25cbb61b5ea38b2e0006efa554db7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 7 Mar 2004 22:12:40 +0000 Subject: Run the new pass in gccld now that it passes all tests git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12196 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/gccld/GenerateCode.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools/gccld/GenerateCode.cpp') diff --git a/tools/gccld/GenerateCode.cpp b/tools/gccld/GenerateCode.cpp index 982a7e3cd4..d2c0f3dd31 100644 --- a/tools/gccld/GenerateCode.cpp +++ b/tools/gccld/GenerateCode.cpp @@ -111,6 +111,10 @@ GenerateBytecode (Module *M, bool Strip, bool Internalize, std::ostream *Out) { 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()); -- cgit v1.2.3-18-g5258