[Bug middle-end/96326] Incorrect loop optimization at -O3

pterjan at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Jul 27 01:48:50 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96326

--- Comment #2 from Pascal Terjan <pterjan at gmail dot com> ---
No:

$ gcc -O3 -Wall -fno-strict-aliasing  t.c; ./a.out 
24

However -fno-tree-loop-vectorize fixes it:

$ gcc -O3 -Wall -fno-tree-loop-vectorize t.c; ./a.out 
68


More information about the Gcc-bugs mailing list