public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/106019] New: Surprising SLP failure on trivial code
@ 2022-06-17 17:51 amonakov at gcc dot gnu.org
  2022-06-20  8:10 ` [Bug tree-optimization/106019] " marxin at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: amonakov at gcc dot gnu.org @ 2022-06-17 17:51 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106019
           Summary: Surprising SLP failure on trivial code
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: amonakov at gcc dot gnu.org
  Target Milestone: ---

In the following code, 'f' is not SLP-vectorized, but 'g' is. From a brief look
at slp2 dump, looks like dependence analysis for p[i] vs. p[i+1] fails?

void f(double *p, long i)
{
    p[i+0] += 1;
    p[i+1] += 1;
}
void g(double *p, long i)
{
    double *q = p + i;
    q[0] += 1;
    q[1] += 1;
}

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

end of thread, other threads:[~2022-06-22 10:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-17 17:51 [Bug tree-optimization/106019] New: Surprising SLP failure on trivial code amonakov at gcc dot gnu.org
2022-06-20  8:10 ` [Bug tree-optimization/106019] " marxin at gcc dot gnu.org
2022-06-20 11:18 ` rguenth at gcc dot gnu.org
2022-06-20 16:40 ` rsandifo at gcc dot gnu.org
2022-06-21  6:48 ` rguenth at gcc dot gnu.org
2022-06-22 10:28 ` cvs-commit at gcc dot gnu.org
2022-06-22 10:29 ` rsandifo 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).