public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "hubicka at ucw dot cz" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/18704] [4.0 Regression] Inlining limits cause 340% performance regression Date: Tue, 07 Dec 2004 17:50:00 -0000 [thread overview] Message-ID: <20041207175010.31137.qmail@sourceware.org> (raw) In-Reply-To: <20041128181553.18704.rguenth@tat.physik.uni-tuebingen.de> ------- Additional Comments From hubicka at ucw dot cz 2004-12-07 17:50 ------- Subject: Re: [4.0 Regression] Inlining limits cause 340% performance regression > > ------- Additional Comments From rguenth at tat dot physik dot uni-tuebingen dot de 2004-12-07 15:35 ------- > Subject: Re: [4.0 Regression] Inlining limits > cause 340% performance regression > > On Tue, 7 Dec 2004, Richard Guenther wrote: > > > static inline void foo() {} > > void bar() { foo(); } > > > > which for -O2 -fprofile-generate produces > > > > bar: > > addl $1, .LPBX1 > > pushl %ebp > > movl %esp, %ebp > > adcl $0, .LPBX1+4 > > addl $1, .LPBX1+16 > > popl %ebp > > adcl $0, .LPBX1+20 > > addl $1, .LPBX1+8 > > adcl $0, .LPBX1+12 > > ret > > Mainline manages to produce > > bar: > addl $1, .LPBX1 > pushl %ebp > movl %esp, %ebp > adcl $0, .LPBX1+4 > popl %ebp > ret > > but that's RTL instrumentation? It is instrumentation after inlining. Before inlining you have two functions so you get two entry points. Doing little inlinng before profiling would do the trick here, but it needs some restructuring first. Honza > > > > -- > > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18704 > > ------- You are receiving this mail because: ------- > You are on the CC list for the bug, or are watching someone who is. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18704
prev parent reply other threads:[~2004-12-07 17:50 UTC|newest] Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-11-28 18:16 [Bug tree-optimization/18704] New: " rguenth at tat dot physik dot uni-tuebingen dot de 2004-11-28 18:20 ` [Bug tree-optimization/18704] [4.0 Regression] " pinskia at gcc dot gnu dot org 2004-11-28 18:22 ` pinskia at gcc dot gnu dot org 2004-11-29 11:05 ` rguenth at tat dot physik dot uni-tuebingen dot de 2004-11-29 11:36 ` giovannibajo at libero dot it 2004-11-29 12:10 ` rguenth at tat dot physik dot uni-tuebingen dot de 2004-11-29 14:07 ` hubicka at ucw dot cz 2004-12-06 5:20 ` pinskia at gcc dot gnu dot org 2004-12-06 9:53 ` rguenth at tat dot physik dot uni-tuebingen dot de 2004-12-06 12:33 ` rguenth at tat dot physik dot uni-tuebingen dot de 2004-12-06 12:45 ` hubicka at ucw dot cz 2004-12-06 13:18 ` rguenth at tat dot physik dot uni-tuebingen dot de 2004-12-06 13:40 ` hubicka at ucw dot cz 2004-12-06 14:31 ` rguenth at tat dot physik dot uni-tuebingen dot de 2004-12-06 15:03 ` hubicka at ucw dot cz 2004-12-07 14:35 ` rguenth at tat dot physik dot uni-tuebingen dot de 2004-12-07 14:50 ` hubicka at ucw dot cz 2004-12-07 14:52 ` hubicka at ucw dot cz 2004-12-07 15:09 ` rguenth at tat dot physik dot uni-tuebingen dot de 2004-12-07 15:36 ` rguenth at tat dot physik dot uni-tuebingen dot de 2004-12-07 17:50 ` hubicka at ucw dot cz [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20041207175010.31137.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).