https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19347
--- Comment #10 from Phosit <phosit at autistici dot org> --- The analysis in my previous comment is wrong. I don't know why there is no alias-check at -O2. Also the loop _is_ removed at -O3.
phosit at autistici dot org via Gcc-bugs Wed, 03 Jan 2024 11:35:19 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19347
--- Comment #10 from Phosit <phosit at autistici dot org> --- The analysis in my previous comment is wrong. I don't know why there is no alias-check at -O2. Also the loop _is_ removed at -O3.