[Bug tree-optimization/102382] Missing optimization for strlen after enable O2 vectorization

2021-09-17 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102382 --- Comment #5 from rguenther at suse dot de --- On Fri, 17 Sep 2021, jakub at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102382 > > --- Comment #4 from Jakub Jelinek --- > Not to mention, for calloc like the above

[Bug tree-optimization/102382] Missing optimization for strlen after enable O2 vectorization

2021-09-17 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102382 --- Comment #4 from Jakub Jelinek --- Not to mention, for calloc like the above where size is non-constant, it wouldn't know how many there are (it would need some magic for all). Anyway, even constant number of 0s at the end of string > 1 would

[Bug tree-optimization/102382] Missing optimization for strlen after enable O2 vectorization

2021-09-17 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102382 --- Comment #3 from Jakub Jelinek --- (In reply to Richard Biener from comment #1) > There's a missed optimization w/o vectorization, strlenopt seems to remove > the p[0] = '\0' store but not the stores to elements 1 to 3. strlen pass doesn't h

[Bug tree-optimization/102382] Missing optimization for strlen after enable O2 vectorization

2021-09-17 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102382 --- Comment #2 from Hongtao.liu --- The issue also exists for -O3

[Bug tree-optimization/102382] Missing optimization for strlen after enable O2 vectorization

2021-09-16 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102382 Richard Biener changed: What|Removed |Added Last reconfirmed||2021-09-17 CC|