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
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102382
--- Comment #2 from Hongtao.liu ---
The issue also exists for -O3
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102382
Richard Biener changed:
What|Removed |Added
Last reconfirmed||2021-09-17
CC|