[Bug c++/42209] New: missed optimization leads to several times slower code

2009-11-28 Thread gb-0001 at xsim dot com
0485f4: 09 c1 or %eax,%ecx 80485f6: b8 0c 00 00 00 mov$0xc,%eax 80485fb: e8 b0 fe ff ff call 80484b0 <_Z11switch_caseIjET_hS0_S0_S0_> 8048600: 89 86 fc 00 00 00 mov%eax,0xfc(%esi) 8048606: 8b 5d f4

[Bug tree-optimization/42209] missed optimization leads to several times slower code

2009-11-29 Thread gb-0001 at xsim dot com
--- Comment #2 from gb-0001 at xsim dot com 2009-11-29 17:34 --- >[For the call in the loop GCC assumes it is more beneficial] And in this case it is: the inner loop code is yet simpler than the prologue/eiplogue code. >[If you are sure it is always beneficial...] It is not

[Bug tree-optimization/42209] missed optimization leads to several times slower code

2009-11-29 Thread gb-0001 at xsim dot com
--- Comment #5 from gb-0001 at xsim dot com 2009-11-30 02:14 --- >[It works in 4.5 with "inline", "always_inline" not needed.] Ah, I misunderstood -- seems good to me. I'd say fixed in 4.5 unless somebody else cares. Digression: this suggests an attribut