[Bug other/46847] Missed optimization for variant of Duff's device

2010-12-08 Thread jjk at acm dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46847 --- Comment #3 from Jens Kilian 2010-12-08 12:10:02 UTC --- (In reply to comment #2) > GCC 4.5 doesn't move end computation inside the loop. What do you expect > to be "good" code? I get at -O[23]: [snip] The code generated by 4.5 is what I wo

[Bug other/46847] Missed optimization for variant of Duff's device

2010-12-08 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46847 --- Comment #2 from Richard Guenther 2010-12-08 12:02:09 UTC --- GCC 4.5 doesn't move end computation inside the loop. What do you expect to be "good" code? I get at -O[23]: foo: .LFB0: mov %esi, %ecx subl%edi, %esi

[Bug other/46847] Missed optimization for variant of Duff's device

2010-12-08 Thread jjk at acm dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46847 --- Comment #1 from Jens Kilian 2010-12-08 09:12:07 UTC --- Created attachment 22681 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22681 Source code and generated assembly