[Bug tree-optimization/81330] missing strlen optimization with intervening memcpy

2019-10-15 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81330 Martin Sebor changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug tree-optimization/81330] missing strlen optimization with intervening memcpy

2019-07-11 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81330 --- Comment #3 from Eric Gallager --- (In reply to Martin Sebor from comment #2) > You're right, I didn't consider this case. When copying (strlen(s) + 1) or > more bytes, d cannot point at the terminating NUL at (s + strlen(s)) because > the co

[Bug tree-optimization/81330] missing strlen optimization with intervening memcpy

2017-07-06 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81330 Martin Sebor changed: What|Removed |Added Keywords||missed-optimization --- Comment #2 from M

[Bug tree-optimization/81330] missing strlen optimization with intervening memcpy

2017-07-06 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81330 --- Comment #1 from joseph at codesourcery dot com --- On Wed, 5 Jul 2017, msebor at gcc dot gnu.org wrote: > GCC eliminates redundant calls to strlen() with intervening calls to strcpy > but > it misses an opportunity to do the same when the i