[Bug c++/110381] New: Incorrect loop unrolling for structs of floating point types

2023-06-23 Thread lennox.ho at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110381 Bug ID: 110381 Summary: Incorrect loop unrolling for structs of floating point types Product: gcc Version: 12.1.0 Status: UNCONFIRMED Severity: normal

[Bug c++/110381] Incorrect loop unrolling for structs of floating point types

2023-06-23 Thread lennox.ho at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110381 --- Comment #1 from Lennox Ho --- This issues does not appear to reproduce with integer types, or if the members are summed in the "natural" order - a => b => c.

[Bug tree-optimization/110381] [11/12/13/14 Regression] double counting for sum of structs of floating point types

2023-06-23 Thread lennox.ho at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110381 --- Comment #3 from Lennox Ho --- Thanks. -fno-tree-vectorize appears to fix GCC 12.1 at -O2. Curious, why is -ftree-vectorize enabled at -O2 with GCC 12.1? The documents say it's only turned on by default with -O3 ``` https://gcc.gnu.org/proje