public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/28802]  New: Operations on data in dynamically allocated structure can't get vectorized
@ 2006-08-22 13:11 nomis80 at nomis80 dot org
  2006-08-22 13:13 ` [Bug tree-optimization/28802] " nomis80 at nomis80 dot org
  2006-08-22 15:46 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: nomis80 at nomis80 dot org @ 2006-08-22 13:11 UTC (permalink / raw)
  To: gcc-bugs

This should get vectorized but isn't:

#include <stdlib.h>

typedef struct
{
    int data[256];
} S;

void f()
{
    S* restrict a = (S*) malloc( sizeof(S) );
    S* restrict b = (S*) malloc( sizeof(S) );
    for ( int i = 0; i < 256; ++i ) {
        b->data[i] += a->data[i];
    }
}


-- 
           Summary: Operations on data in dynamically allocated structure
                    can't get vectorized
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: nomis80 at nomis80 dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28802


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

* [Bug tree-optimization/28802] Operations on data in dynamically allocated structure can't get vectorized
  2006-08-22 13:11 [Bug tree-optimization/28802] New: Operations on data in dynamically allocated structure can't get vectorized nomis80 at nomis80 dot org
@ 2006-08-22 13:13 ` nomis80 at nomis80 dot org
  2006-08-22 15:46 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: nomis80 at nomis80 dot org @ 2006-08-22 13:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from nomis80 at nomis80 dot org  2006-08-22 13:12 -------
Created an attachment (id=12112)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12112&action=view)
Tree dump

Command-line:

gcc -std=c99 -O3 -march=pentium4 -ftree-vectorize -ftree-vectorizer-verbose=7
-fdump-tree-vect -c test_vect.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28802


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

* [Bug tree-optimization/28802] Operations on data in dynamically allocated structure can't get vectorized
  2006-08-22 13:11 [Bug tree-optimization/28802] New: Operations on data in dynamically allocated structure can't get vectorized nomis80 at nomis80 dot org
  2006-08-22 13:13 ` [Bug tree-optimization/28802] " nomis80 at nomis80 dot org
@ 2006-08-22 15:46 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-22 15:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-08-22 15:46 -------


*** This bug has been marked as a duplicate of 21591 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28802


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

end of thread, other threads:[~2006-08-22 15:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-22 13:11 [Bug tree-optimization/28802] New: Operations on data in dynamically allocated structure can't get vectorized nomis80 at nomis80 dot org
2006-08-22 13:13 ` [Bug tree-optimization/28802] " nomis80 at nomis80 dot org
2006-08-22 15:46 ` pinskia at gcc dot gnu dot 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).