public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/111133] New: SLP of scatters not implemented
@ 2023-08-24 13:10 rguenth at gcc dot gnu.org
  2023-11-08 12:17 ` [Bug tree-optimization/111133] " rguenth at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-08-24 13:10 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 111133
           Summary: SLP of scatters not implemented
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

There is no scatter support for (single-lane) SLP.  For example

#define N 16

void __attribute__((noipa))
f (float *restrict y, float *restrict x, int *restrict indices)
{
  for (int i = 0; i < N; ++i)
    {
      x[indices[i * 2]] = y[i * 2] + 1;
      x[indices[i * 2 + 1]] = y[i * 2 + 1] + 2;
    }
}

doesn't vectorize.  Note this is also due to

t.c:6:21: note:   === vect_analyze_data_ref_dependences ===
t.c:8:25: missed:   possible alias involving gather/scatter between *_10 and
*_20
t.c:6:21: missed:  bad data dependence.

but with SLP scatters guarantee left-to-right commit so that shouldn't
be an issue there and also shows why SLP is even required for this
to vectorize.

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

end of thread, other threads:[~2023-11-09 13:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-24 13:10 [Bug tree-optimization/111133] New: SLP of scatters not implemented rguenth at gcc dot gnu.org
2023-11-08 12:17 ` [Bug tree-optimization/111133] " rguenth at gcc dot gnu.org
2023-11-09 12:59 ` cvs-commit at gcc dot gnu.org
2023-11-09 13:00 ` [Bug tree-optimization/111133] multi-lane " 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).