public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/36228]  New: redundant runtime check while vectorizing
@ 2008-05-13 13:00 razya at il dot ibm dot com
  2008-05-13 13:41 ` [Bug tree-optimization/36228] " rguenth at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: razya at il dot ibm dot com @ 2008-05-13 13:00 UTC (permalink / raw)
  To: gcc-bugs

/* { dg-do compile } */
/* { dg-options "-O3 -c" } */

#define COLS         8
#define ROWS         8

int
t_run_test(void);

int
t_run_test()
{
     int k_1,i_1, j_1;
     static signed char f_1[ROWS][COLS] ;
     static long F_1[ROWS][COLS] ;
     long cosMatrixA[ROWS][COLS] ;

     for( k_1 = 0 ; k_1 < COLS ; k_1++ )
        {
            for( i_1 = 0 ; i_1 < ROWS ; i_1++ )
            {
                for( j_1 = 0 ; j_1 < COLS ; j_1++ )
                    F_1[i_1][j_1] += f_1[i_1][k_1] * cosMatrixA[k_1][j_1] ;
            }
        }

  return 0;
}

A redundant check for aliasing is created.
Looking at the vectorizer's dump, we see:
versioning for alias required: can't determine dependence between
F_1[i_1_41][j_1_42] and F_1[i_1_41][j_1_42]

Tested on Power6.


-- 
           Summary: redundant runtime check while vectorizing
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: razya at il dot ibm dot com


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


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

end of thread, other threads:[~2008-05-16 16:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-13 13:00 [Bug tree-optimization/36228] New: redundant runtime check while vectorizing razya at il dot ibm dot com
2008-05-13 13:41 ` [Bug tree-optimization/36228] " rguenth at gcc dot gnu dot org
2008-05-14  3:59 ` spop at gcc dot gnu dot org
2008-05-15 21:56 ` sebpop at gmail dot com
2008-05-15 22:01 ` rguenth at gcc dot gnu dot org
2008-05-16 16:47 ` spop 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).