[Bug tree-optimization/104665] Failure to recognize memcpy

2022-02-24 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104665 --- Comment #4 from Richard Biener --- In principle loop distribution could recognize this but it currently is doing too simplistic checking for this, not sure how difficult handling this would be.

[Bug tree-optimization/104665] Failure to recognize memcpy

2022-02-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104665 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug tree-optimization/104665] Failure to recognize memcpy

2022-02-23 Thread monad at posteo dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104665 --- Comment #2 from monad at posteo dot net --- The full code including headers is: #include #include #include void serialize_le(std::byte* __restrict dst, const std::uint32_t* __restrict src) { for (int i = 0; i < 32; ++i, ++src) {

[Bug tree-optimization/104665] Failure to recognize memcpy

2022-02-23 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104665 --- Comment #1 from Jonathan Wakely --- Please include the full code here, including the #include directives. Not just a link to godbolt.org.