public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/107690] New: Regression in ranges::transform vectorization
@ 2022-11-14 19:53 Mark_B53 at yahoo dot com
  2022-11-14 19:59 ` [Bug rtl-optimization/107690] " pinskia at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Mark_B53 at yahoo dot com @ 2022-11-14 19:53 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107690

            Bug ID: 107690
           Summary: Regression in ranges::transform vectorization
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: Mark_B53 at yahoo dot com
  Target Milestone: ---

GCC 11.3 vectorizes the following code.  GCC 12.2 fails to vectorize.

#include <algorithm>
#include <array>
#include <ranges>

std::array<int, 16> foo(std::array<int, 16> u, std::array<int, 16> const &v)
{
    std::ranges::transform(u, v, u.begin(), std::plus<int>());
    return u;
}

https://godbolt.org/z/KnhdPs6G3

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-05-08 12:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-14 19:53 [Bug rtl-optimization/107690] New: Regression in ranges::transform vectorization Mark_B53 at yahoo dot com
2022-11-14 19:59 ` [Bug rtl-optimization/107690] " pinskia at gcc dot gnu.org
2022-11-14 20:08 ` [Bug rtl-optimization/107690] [12/13 Regression] vectorization fails for std::ranges::transform due to IR changes pinskia at gcc dot gnu.org
2022-11-16 13:17 ` [Bug tree-optimization/107690] " rguenth at gcc dot gnu.org
2022-11-21 10:05 ` [Bug tree-optimization/107690] [12/13 Regression] vectorization fails for std::ranges::transform due to IR changes since r12-3903-g0288527f47cec669 marxin at gcc dot gnu.org
2023-05-08 12:25 ` [Bug tree-optimization/107690] [12/13/14 " rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).