[llvm-commits] [llvm-gcc-4.2] r51608 - /llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Evan Cheng
evan.cheng at apple.com
Tue May 27 13:40:13 PDT 2008
Author: evancheng
Date: Tue May 27 15:40:13 2008
New Revision: 51608
URL: http://llvm.org/viewvc/llvm-project?rev=51608&view=rev
Log:
Really honor -fno-inline-functions.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp?rev=51608&r1=51607&r2=51608&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp Tue May 27 15:40:13 2008
@@ -353,7 +353,7 @@
PM->add(createCFGSimplificationPass()); // Clean up after IPCP & DAE
if (flag_unit_at_a_time && flag_exceptions)
PM->add(createPruneEHPass()); // Remove dead EH info
- if (flag_inline_trees) // respect -fno-inline-functions
+ if (flag_inline_trees > 1) // respect -fno-inline-functions
PM->add(createFunctionInliningPass()); // Inline small functions
if (optimize > 2)
PM->add(createArgumentPromotionPass()); // Scalarize uninlined fn args
More information about the llvm-commits
mailing list