[llvm-branch-commits] [llvm-gcc-branch] r86221 - /llvm-gcc-4.2/branches/Apple/Leela/gcc/llvm-backend.cpp

Evan Cheng evan.cheng at apple.com
Thu Nov 5 18:55:43 PST 2009


Author: evancheng
Date: Thu Nov  5 20:55:43 2009
New Revision: 86221

URL: http://llvm.org/viewvc/llvm-project?rev=86221&view=rev
Log:
Merge 86219 and 86220.

Modified:
    llvm-gcc-4.2/branches/Apple/Leela/gcc/llvm-backend.cpp

Modified: llvm-gcc-4.2/branches/Apple/Leela/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/branches/Apple/Leela/gcc/llvm-backend.cpp?rev=86221&r1=86220&r2=86221&view=diff

==============================================================================
--- llvm-gcc-4.2/branches/Apple/Leela/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/branches/Apple/Leela/gcc/llvm-backend.cpp Thu Nov  5 20:55:43 2009
@@ -357,15 +357,8 @@
     return 50;
   
   if (optimize >= 3)
-    return 200;
-
-  // gcc mark C++ member functions "inline" and inline them more aggressively.
-  // We are not going to do that. Up the inline threshold when compiling for
-  // C++.
-  StringRef LanguageName = lang_hooks.name;
-  if (LanguageName == "GNU C++" || LanguageName == "GNU Objective-C++")
-    return 200;
-  return 50;
+    return 250;
+  return 200;
 }
 
 void llvm_initialize_backend(void) {





More information about the llvm-branch-commits mailing list