[Bug tree-optimization/113592] missed partial sum optimization in vectorizer

2024-01-25 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113592 Richard Biener changed: What|Removed |Added Target||x86_64-*-* --- Comment #4 from Richard

[Bug tree-optimization/113592] missed partial sum optimization in vectorizer

2024-01-24 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113592 --- Comment #3 from Hongtao Liu --- This testcase is probably not a good example for typical partail sum which relies on unroll loops. double foo (double* p, int n) { double sum = 0; for (int i = 0; i != n; i++) sum += p[i] * p[i]

[Bug tree-optimization/113592] missed partial sum optimization in vectorizer

2024-01-24 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113592 --- Comment #2 from Hongtao Liu --- *** Bug 113594 has been marked as a duplicate of this bug. ***

[Bug tree-optimization/113592] missed partial sum optimization in vectorizer

2024-01-24 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113592 --- Comment #1 from Hongtao Liu --- *** Bug 113593 has been marked as a duplicate of this bug. ***