public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/65952] New: [AArch64] Will not vectorize copying pointers
@ 2015-04-30 17:41 alalaw01 at gcc dot gnu.org
  2015-04-30 18:46 ` [Bug target/65952] [AArch64] Will not vectorize storing induction of pointer addresses pinskia at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: alalaw01 at gcc dot gnu.org @ 2015-04-30 17:41 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 65952
           Summary: [AArch64] Will not vectorize copying pointers
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: alalaw01 at gcc dot gnu.org
  Target Milestone: ---
            Target: aarch64

typedef struct {
  int a, b, c, d;
} my_struct;

my_struct *array;
my_struct *ptrs[4];

void
loop ()
{
  for (int i = 0; i < 4; i++)
    ptrs[i] = &array[i];
}

Vectorizes on x86, but not on AArch64. From -fdump-tree-vect-details:

test.c:13:3: note: vectorization factor = 4
...
test.c:13:3: note: not vectorized: relevant stmt not supported: _6 = _5 * 16;
test.c:13:3: note: bad operation or unsupported loop bound.
test.c:13:3: note: ***** Re-trying analysis with vector size 8
...
test.c:13:3: note: not vectorized: no vectype for stmt: ptrs[i_12] = _7;
 scalar_type: struct my_struct *
test.c:13:3: note: bad data references.
test.c:11:1: note: vectorized 0 loops in function.


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

end of thread, other threads:[~2015-08-10  7:05 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-30 17:41 [Bug target/65952] New: [AArch64] Will not vectorize copying pointers alalaw01 at gcc dot gnu.org
2015-04-30 18:46 ` [Bug target/65952] [AArch64] Will not vectorize storing induction of pointer addresses pinskia at gcc dot gnu.org
2015-04-30 18:48 ` pinskia at gcc dot gnu.org
2015-04-30 20:34 ` [Bug target/65952] [AArch64] Will not vectorize storing induction of pointer addresses for LP64 pinskia at gcc dot gnu.org
2015-05-01  9:52 ` alalaw01 at gcc dot gnu.org
2015-06-17 12:59 ` alalaw01 at gcc dot gnu.org
2015-06-17 13:19 ` rguenth at gcc dot gnu.org
2015-06-17 13:21 ` alalaw01 at gcc dot gnu.org
2015-06-17 13:22 ` alalaw01 at gcc dot gnu.org
2015-07-20 10:30 ` vekumar at gcc dot gnu.org
2015-08-10  7:05 ` vekumar 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).