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

2007-03-29 Thread jamagallon at ono dot com
--- Comment #3 from jamagallon at ono dot com 2007-03-29 23:22 --- Sample assembler for the loops. For the funcion, out of line: #APP #FBGN #NO_APP movldata, %edx fldz movl$1, %eax .L2: fadds -4(%edx,%eax,4) addl$1, %eax cmpl$268435457, %eax

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

2007-03-29 Thread jamagallon at ono dot com
--- Comment #2 from jamagallon at ono dot com 2007-03-29 23:18 --- Created an attachment (id=13299) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13299&action=view) Makefile for testcase Makefile to build tst.c. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31396

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

2007-03-29 Thread jamagallon at ono dot com
--- Comment #1 from jamagallon at ono dot com 2007-03-29 23:17 --- Created an attachment (id=13298) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13298&action=view) testcase Simple test case with a loop in main() and a call to a function. Both just calculate the sum of all element