public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/26745]  New: Simple loop is no longer vectorized
@ 2006-03-18 14:07 micis at gmx dot de
  2006-03-18 14:48 ` [Bug tree-optimization/26745] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: micis at gmx dot de @ 2006-03-18 14:07 UTC (permalink / raw)
  To: gcc-bugs

The gcc40 was able to vetorize the simple program given below, gcc41 and gcc42
are failing to vectorize with the message:

novect.cpp:21: note: not vectorized: can't determine dependence between
A_4->X[f_9] and C_8->X[f_9]
novect.cpp:21: note: vectorized 0 loops in function.

Michael Cieslinski


<novect.cpp>
struct S
{
    enum {count = 40};

    typedef struct { double X[count]; } __attribute__(( aligned(16) )) DblAli;

    struct {double X[count];} aaa __attribute__(( aligned(16) ));
    struct {double X[count];} bbb __attribute__(( aligned(16) ));
    struct {double X[count];} ccc __attribute__(( aligned(16) ));

    void Func ();
} __attribute__(( aligned(16) ));


void S::Func ()
{
    DblAli* __restrict__ A = (DblAli*)(&aaa.X[0]);
    DblAli* __restrict__ B = (DblAli*)(&bbb.X[0]);
    DblAli* __restrict__ C = (DblAli*)(&ccc.X[0]);

    for (int f=0; f<count; f++)
    {
        (*C).X[f] = (*A).X[f] * (*B).X[f];
    }
}


-- 
           Summary: Simple loop is no longer vectorized
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: micis at gmx dot de
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


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

* [Bug tree-optimization/26745] Simple loop is no longer vectorized
  2006-03-18 14:07 [Bug tree-optimization/26745] New: Simple loop is no longer vectorized micis at gmx dot de
@ 2006-03-18 14:48 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-18 14:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-03-18 14:48 -------


*** 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=26745


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

end of thread, other threads:[~2006-03-18 14:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-18 14:07 [Bug tree-optimization/26745] New: Simple loop is no longer vectorized micis at gmx dot de
2006-03-18 14:48 ` [Bug tree-optimization/26745] " 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).