public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/43657] [4.3/4.4/4.5/4.6 Regression] -ftree-loop-linear causes FAIL: gcc.dg/vect/vect-cond-5.c execution test
       [not found] <bug-43657-4@http.gcc.gnu.org/bugzilla/>
@ 2010-10-19 21:28 ` changpeng.fang at amd dot com
  2011-01-16 12:29 ` aoliva at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: changpeng.fang at amd dot com @ 2010-10-19 21:28 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Changpeng Fang <changpeng.fang at amd dot com> 2010-10-19 21:27:46 UTC ---
 for (k = 0; k < 32; k++)
    {
      res = 0;
      for (j = 0; j < 32; j++) 
        for (i = 0; i < 32; i++)
          { 
            next = a[i][j]; 
            res = c > cond_array[i+k][j] ? next : res;
          }

      out[k] = res;
    }


gcc interchanges i and j loops, which is not legal in this case.
Apparently, res takes the last value of a[i][j] that satisfies the 
condition c > cond_array[i+k][j]. As a result, change in the 
reference order will get a different value for res.

Anyone knows where to do this legality check?

What about the interchange in Graphite for this case?


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

* [Bug tree-optimization/43657] [4.3/4.4/4.5/4.6 Regression] -ftree-loop-linear causes FAIL: gcc.dg/vect/vect-cond-5.c execution test
       [not found] <bug-43657-4@http.gcc.gnu.org/bugzilla/>
  2010-10-19 21:28 ` [Bug tree-optimization/43657] [4.3/4.4/4.5/4.6 Regression] -ftree-loop-linear causes FAIL: gcc.dg/vect/vect-cond-5.c execution test changpeng.fang at amd dot com
@ 2011-01-16 12:29 ` aoliva at gcc dot gnu.org
  2011-01-16 13:23 ` aoliva at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: aoliva at gcc dot gnu.org @ 2011-01-16 12:29 UTC (permalink / raw)
  To: gcc-bugs

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

Alexandre Oliva <aoliva at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2011.01.16 11:50:32
                 CC|                            |aoliva at gcc dot gnu.org
      Known to work|                            |
         AssignedTo|unassigned at gcc dot       |aoliva at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1
      Known to fail|                            |

--- Comment #5 from Alexandre Oliva <aoliva at gcc dot gnu.org> 2011-01-16 11:50:32 UTC ---
Been looking into this.  There doesn't seem to be anything to prevent the loop
from being transformed when an SSA DEF escapes the loop.  Trying to fix.


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

* [Bug tree-optimization/43657] [4.3/4.4/4.5/4.6 Regression] -ftree-loop-linear causes FAIL: gcc.dg/vect/vect-cond-5.c execution test
       [not found] <bug-43657-4@http.gcc.gnu.org/bugzilla/>
  2010-10-19 21:28 ` [Bug tree-optimization/43657] [4.3/4.4/4.5/4.6 Regression] -ftree-loop-linear causes FAIL: gcc.dg/vect/vect-cond-5.c execution test changpeng.fang at amd dot com
  2011-01-16 12:29 ` aoliva at gcc dot gnu.org
@ 2011-01-16 13:23 ` aoliva at gcc dot gnu.org
  2011-01-18 20:56 ` spop at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: aoliva at gcc dot gnu.org @ 2011-01-16 13:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Alexandre Oliva <aoliva at gcc dot gnu.org> 2011-01-16 12:29:18 UTC ---
Created attachment 22982
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22982
Proposed patch

This avoids the transformation, but...  Is the test too strict?  My reasoning
is that, since we're in closed form (right?), the exit block will only have
PHIs for stuff that is changed wthin the loop and is used outside the loop. 
Does that sound sound? :-)


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

* [Bug tree-optimization/43657] [4.3/4.4/4.5/4.6 Regression] -ftree-loop-linear causes FAIL: gcc.dg/vect/vect-cond-5.c execution test
       [not found] <bug-43657-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2011-01-16 13:23 ` aoliva at gcc dot gnu.org
@ 2011-01-18 20:56 ` spop at gcc dot gnu.org
  2011-01-18 20:59 ` spop at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: spop at gcc dot gnu.org @ 2011-01-18 20:56 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Sebastian Pop <spop at gcc dot gnu.org> 2011-01-18 20:54:38 UTC ---
Author: spop
Date: Tue Jan 18 20:54:34 2011
New Revision: 168964

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168964
Log:
Add testcase for PR43657.

2011-01-18  Sebastian Pop  <sebastian.pop@amd.com>

    PR tree-optimization/43657
    * gcc.dg/graphite/pr43657.c: New.

Added:
    branches/graphite/gcc/testsuite/gcc.dg/graphite/pr43657.c
Modified:
    branches/graphite/gcc/ChangeLog.graphite


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

* [Bug tree-optimization/43657] [4.3/4.4/4.5/4.6 Regression] -ftree-loop-linear causes FAIL: gcc.dg/vect/vect-cond-5.c execution test
       [not found] <bug-43657-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2011-01-18 20:56 ` spop at gcc dot gnu.org
@ 2011-01-18 20:59 ` spop at gcc dot gnu.org
  2011-01-25 21:29 ` spop at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: spop at gcc dot gnu.org @ 2011-01-18 20:59 UTC (permalink / raw)
  To: gcc-bugs

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

Sebastian Pop <spop at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|aoliva at gcc dot gnu.org   |spop at gcc dot gnu.org

--- Comment #8 from Sebastian Pop <spop at gcc dot gnu.org> 2011-01-18 20:55:48 UTC ---
Fixed on the graphite branch.


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

* [Bug tree-optimization/43657] [4.3/4.4/4.5/4.6 Regression] -ftree-loop-linear causes FAIL: gcc.dg/vect/vect-cond-5.c execution test
       [not found] <bug-43657-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2011-01-18 20:59 ` spop at gcc dot gnu.org
@ 2011-01-25 21:29 ` spop at gcc dot gnu.org
  2011-01-25 21:30 ` spop at gcc dot gnu.org
  2011-02-02 18:03 ` dnovillo at gcc dot gnu.org
  7 siblings, 0 replies; 11+ messages in thread
From: spop at gcc dot gnu.org @ 2011-01-25 21:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Sebastian Pop <spop at gcc dot gnu.org> 2011-01-25 21:25:05 UTC ---
Author: spop
Date: Tue Jan 25 21:24:53 2011
New Revision: 169254

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=169254
Log:
Add testcase for PR43657.

2011-01-18  Sebastian Pop  <sebastian.pop@amd.com>

    PR tree-optimization/43657
    * gcc.dg/graphite/pr43657.c: New.

Added:
    trunk/gcc/testsuite/gcc.dg/graphite/pr43657.c
Modified:
    trunk/gcc/testsuite/ChangeLog


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

* [Bug tree-optimization/43657] [4.3/4.4/4.5/4.6 Regression] -ftree-loop-linear causes FAIL: gcc.dg/vect/vect-cond-5.c execution test
       [not found] <bug-43657-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2011-01-25 21:29 ` spop at gcc dot gnu.org
@ 2011-01-25 21:30 ` spop at gcc dot gnu.org
  2011-02-02 18:03 ` dnovillo at gcc dot gnu.org
  7 siblings, 0 replies; 11+ messages in thread
From: spop at gcc dot gnu.org @ 2011-01-25 21:30 UTC (permalink / raw)
  To: gcc-bugs

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

Sebastian Pop <spop at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #10 from Sebastian Pop <spop at gcc dot gnu.org> 2011-01-25 21:28:55 UTC ---
Fixed.


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

* [Bug tree-optimization/43657] [4.3/4.4/4.5/4.6 Regression] -ftree-loop-linear causes FAIL: gcc.dg/vect/vect-cond-5.c execution test
       [not found] <bug-43657-4@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2011-01-25 21:30 ` spop at gcc dot gnu.org
@ 2011-02-02 18:03 ` dnovillo at gcc dot gnu.org
  7 siblings, 0 replies; 11+ messages in thread
From: dnovillo at gcc dot gnu.org @ 2011-02-02 18:03 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from Diego Novillo <dnovillo at gcc dot gnu.org> 2011-02-02 17:48:23 UTC ---
Author: dnovillo
Date: Wed Feb  2 17:48:17 2011
New Revision: 169593

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=169593
Log:
Add testcase for PR43657.

2011-01-18  Sebastian Pop  <sebastian.pop@amd.com>

    PR tree-optimization/43657
    * gcc.dg/graphite/pr43657.c: New.

Added:
    branches/google/integration/gcc/testsuite/gcc.dg/graphite/pr43657.c
Modified:
    branches/google/integration/gcc/testsuite/ChangeLog


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

* [Bug tree-optimization/43657] [4.3/4.4/4.5/4.6 Regression] -ftree-loop-linear causes FAIL: gcc.dg/vect/vect-cond-5.c execution test
  2010-04-05 23:00 [Bug tree-optimization/43657] New: [4.3/4.4/4.5 " zsojka at seznam dot cz
  2010-04-09 13:00 ` [Bug tree-optimization/43657] [4.3/4.4/4.5/4.6 " rguenth at gcc dot gnu dot org
  2010-05-22 18:36 ` rguenth at gcc dot gnu dot org
@ 2010-05-26 11:15 ` jakub at gcc dot gnu dot org
  2 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-05-26 11:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2010-05-26 11:15 -------
Created an attachment (id=20748)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20748&action=view)
pr43657.c

Slightly adjusted testcase.


-- 


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


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

* [Bug tree-optimization/43657] [4.3/4.4/4.5/4.6 Regression] -ftree-loop-linear causes FAIL: gcc.dg/vect/vect-cond-5.c execution test
  2010-04-05 23:00 [Bug tree-optimization/43657] New: [4.3/4.4/4.5 " zsojka at seznam dot cz
  2010-04-09 13:00 ` [Bug tree-optimization/43657] [4.3/4.4/4.5/4.6 " rguenth at gcc dot gnu dot org
@ 2010-05-22 18:36 ` rguenth at gcc dot gnu dot org
  2010-05-26 11:15 ` jakub at gcc dot gnu dot org
  2 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-22 18:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2010-05-22 18:13 -------
GCC 4.3.5 is being released, adjusting target milestone.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.5                       |4.3.6


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


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

* [Bug tree-optimization/43657] [4.3/4.4/4.5/4.6 Regression] -ftree-loop-linear causes FAIL: gcc.dg/vect/vect-cond-5.c execution test
  2010-04-05 23:00 [Bug tree-optimization/43657] New: [4.3/4.4/4.5 " zsojka at seznam dot cz
@ 2010-04-09 13:00 ` rguenth at gcc dot gnu dot org
  2010-05-22 18:36 ` rguenth at gcc dot gnu dot org
  2010-05-26 11:15 ` jakub at gcc dot gnu dot org
  2 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-04-09 13:00 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


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


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

end of thread, other threads:[~2011-02-02 18:03 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-43657-4@http.gcc.gnu.org/bugzilla/>
2010-10-19 21:28 ` [Bug tree-optimization/43657] [4.3/4.4/4.5/4.6 Regression] -ftree-loop-linear causes FAIL: gcc.dg/vect/vect-cond-5.c execution test changpeng.fang at amd dot com
2011-01-16 12:29 ` aoliva at gcc dot gnu.org
2011-01-16 13:23 ` aoliva at gcc dot gnu.org
2011-01-18 20:56 ` spop at gcc dot gnu.org
2011-01-18 20:59 ` spop at gcc dot gnu.org
2011-01-25 21:29 ` spop at gcc dot gnu.org
2011-01-25 21:30 ` spop at gcc dot gnu.org
2011-02-02 18:03 ` dnovillo at gcc dot gnu.org
2010-04-05 23:00 [Bug tree-optimization/43657] New: [4.3/4.4/4.5 " zsojka at seznam dot cz
2010-04-09 13:00 ` [Bug tree-optimization/43657] [4.3/4.4/4.5/4.6 " rguenth at gcc dot gnu dot org
2010-05-22 18:36 ` rguenth at gcc dot gnu dot org
2010-05-26 11:15 ` jakub 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).