[Bug libstdc++/118647] Missed optimization to do memcpy/memmove for contiguous iterator

2025-01-25 Thread alfredo.correa at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118647 --- Comment #10 from Alfredo Correa --- Ok, fair points. In that case, wouldn't it be more consistent that the `contiguous_iterator` concept checks for these `noexcept` characteristics?

[Bug libstdc++/118647] Missed optimization to do memcpy/memmove for contiguous iterator

2025-01-24 Thread alfredo.correa at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118647 --- Comment #6 from Alfredo Correa --- (In reply to Andrew Pinski from comment #3) > Please do attach the testcase that does not use boost instead of just > linking godbolt too. The first link, at the top of the OP, doesn't use external code: h

[Bug libstdc++/118647] Missed optimization to do memcpy/memmove for contiguous iterator

2025-01-24 Thread alfredo.correa at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118647 --- Comment #5 from Alfredo Correa --- (In reply to Andrew Pinski from comment #3) > (In reply to Alfredo Correa from comment #2) > > (In reply to Andrew Pinski from comment #1) > > > The tree level misdetection is recorded as PR 99504. > > > >

[Bug libstdc++/118647] Missed optimization to do memcpy/memmove for contiguous iterator

2025-01-24 Thread alfredo.correa at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118647 --- Comment #2 from Alfredo Correa --- (In reply to Andrew Pinski from comment #1) > The tree level misdetection is recorded as PR 99504. ok, I am not an expert, but I have the impression that what I reported is library problem, not a compiler

[Bug libstdc++/118647] New: Missed optimization to do memcpy/memmove for contiguous iterator

2025-01-24 Thread alfredo.correa at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118647 Bug ID: 118647 Summary: Missed optimization to do memcpy/memmove for contiguous iterator Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug libstdc++/115444] std::copy_n generates more code than needed

2024-10-13 Thread alfredo.correa at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115444 --- Comment #10 from Alfredo Correa --- Wow, that was fast! Great! (I wasn't optimistic, to be honest.)'

[Bug libstdc++/115444] std::copy_n generates more code than needed

2024-10-13 Thread alfredo.correa at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115444 --- Comment #8 from Alfredo Correa --- FWIIW, this is the origin of the problem, https://gitlab.com/correaa/boost-multi#broadcast-infinite-views, implementing an iterator type that supports stride == 0. This doesn't form a proper random access

[Bug libstdc++/115444] std::copy_n generates more code than needed

2024-08-14 Thread alfredo.correa at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115444 Alfredo Correa changed: What|Removed |Added CC||alfredo.correa at gmail dot com --- Co