public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/67323] New: Use non-unit stride loads by preference when applicable
@ 2015-08-23  3:14 michael.collison at linaro dot org
  2015-08-25  9:14 ` [Bug tree-optimization/67323] " rguenth at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: michael.collison at linaro dot org @ 2015-08-23  3:14 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 67323
           Summary: Use non-unit stride loads by preference when
                    applicable
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: michael.collison at linaro dot org
  Target Milestone: ---

On arm targets the following code fails to generate a vld3:

struct pixel {
  char r,g,b;
};

void 
t2(int len, struct pixel * __restrict p, struct pixel * __restrict x)
{
  len = len & ~31;
  for (int i = 0; i < len; i++){
      p[i].r = x[i].r * 2;
      p[i].g = x[i].g * 3;
      p[i].b = x[i].b * 4;
  }
}

Yes the same code with line 11 changed to:

p[i].g = x[i].g;

does generate a vld3.


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

end of thread, other threads:[~2021-05-04 12:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-23  3:14 [Bug tree-optimization/67323] New: Use non-unit stride loads by preference when applicable michael.collison at linaro dot org
2015-08-25  9:14 ` [Bug tree-optimization/67323] " rguenth at gcc dot gnu.org
2015-08-25  9:57 ` michael.collison at linaro dot org
2015-08-25 10:05 ` rguenther at suse dot de
2015-08-25 10:14 ` michael.collison at linaro dot org
2015-10-07 11:37 ` rguenth at gcc dot gnu.org
2021-05-04 12:32 ` 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).