Dale Johannesen
2009-Jan-05 22:59 UTC
[LLVMdev] [llvm-commits] [llvm-gcc-4.2] r61493 - in /llvm-gcc-4.2/trunk/gcc: ipa-inline.c passes.c
On Dec 30, 2008, at 5:15 AMPST, Duncan Sands wrote:> Author: baldrick > Date: Tue Dec 30 07:15:15 2008 > New Revision: 61493 > > URL: http://llvm.org/viewvc/llvm-project?rev=61493&view=rev > Log: > Now that LLVM handles always_inline itself, run > gcc's early inliner rather than the full inliner. > This does a lot less inlining, and partially > fixes PR3232. On the other hand, this may cause > regressions with webkit and friends (PR2353), > but there's only one way to find out!This causes a regression of approximately 10% when cpp is built with llvm-gcc. I'm not sure what the criteria for putting this in should be; maybe we should discuss that before you try again. I don't think "no regressions on anything" is reasonable; the compiler doesn't have enough information to do a perfect job of inlining, so some things are inevitably going to regress. I do think cpp is one of the things that shouldn't regress, though.
Possibly Parallel Threads
- [PATCH v3 1/3] compiler-gcc.h: add gnu_inline to all inline declarations
- [PATCH 4.4 04/31] compiler-gcc.h: Add __attribute__((gnu_inline)) to all inline declarations
- [PATCH 4.9 05/66] compiler-gcc.h: Add __attribute__((gnu_inline)) to all inline declarations
- [PATCH 4.14 01/92] compiler-gcc.h: Add __attribute__((gnu_inline)) to all inline declarations
- [PATCH 4.17 001/101] compiler-gcc.h: Add __attribute__((gnu_inline)) to all inline declarations