[Bug rtl-optimization/31396] Inline code performance much worse than out-of-line

2008-01-17 Thread ubizjak at gmail dot com
--- Comment #12 from ubizjak at gmail dot com 2008-01-18 07:12 --- Part of problems described here is caused by PR 23322. -- ubizjak at gmail dot com changed: What|Removed |Added -

[Bug rtl-optimization/31396] Inline code performance much worse than out-of-line

2008-01-16 Thread hubicka at gcc dot gnu dot org
--- Comment #11 from hubicka at gcc dot gnu dot org 2008-01-16 16:33 --- Fixed on mainline. -- hubicka at gcc dot gnu dot org changed: What|Removed |Added St

[Bug rtl-optimization/31396] Inline code performance much worse than out-of-line

2008-01-16 Thread hubicka at gcc dot gnu dot org
--- Comment #10 from hubicka at gcc dot gnu dot org 2008-01-16 16:32 --- Subject: Bug 31396 Author: hubicka Date: Wed Jan 16 16:32:05 2008 New Revision: 131576 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131576 Log: PR rtl-optimization/31396 * regstat.c (reg

[Bug rtl-optimization/31396] Inline code performance much worse than out-of-line

2008-01-12 Thread hubicka at gcc dot gnu dot org
--- Comment #9 from hubicka at gcc dot gnu dot org 2008-01-12 19:00 --- Created an attachment (id=14930) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14930&action=view) tentative fix I am testing the attached patch. It is obvious that we should use profile here. The PR is most

[Bug rtl-optimization/31396] Inline code performance much worse than out-of-line

2007-04-04 Thread ubizjak at gmail dot com
--- Comment #8 from ubizjak at gmail dot com 2007-04-04 09:21 --- The difference is in CALLER_SAVE_PROFITALBLE condition. The pseudo that holds sum is referenced 6 times. When only one foo() is called, default CALLER_SAVE_PROFITABLE condition causes RA to allocate call-clobbered registe

[Bug rtl-optimization/31396] Inline code performance much worse than out-of-line

2007-04-04 Thread ubizjak at gmail dot com
--- Comment #7 from ubizjak at gmail dot com 2007-04-04 08:05 --- This is the minimal test case for this bug: --cut here-- extern void foo(void); double *data; double test() { double sum = 123.321; int i; for (i=0; i<4; i++) sum += data[i]; foo(); foo(); return sum;

[Bug rtl-optimization/31396] Inline code performance much worse than out-of-line

2007-04-02 Thread pinskia at gcc dot gnu dot org
--- Comment #6 from pinskia at gcc dot gnu dot org 2007-04-03 06:03 --- (In reply to comment #5) > Why are you storing to the stack? The PPC issue is only an issue on the trunk, so I filed PR 31455 for that bug. But I bet this bug is related to some extend. -- http://gcc.gnu.org/

[Bug rtl-optimization/31396] Inline code performance much worse than out-of-line

2007-04-02 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2007-04-03 05:49 --- The same thing happens on PPC also: L6: lfsx f0,r2,r9 addi r2,r2,4 lfd f13,104(r1) fadd f13,f13,f0 stfd f13,104(r1) bdnz L6 Why are you storing to the stack? Ok, part