public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/32378]  New: can't determine dependence (distinct sections of an array)
@ 2007-06-17 15:35 tprince at computer dot org
  2007-06-17 15:36 ` [Bug fortran/32378] " tprince at computer dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: tprince at computer dot org @ 2007-06-17 15:35 UTC (permalink / raw)
  To: gcc-bugs

gfortran -O2  -ftree-vectorize -ftree-vectorizer-verbose=2 -c -v s174.f
The two sections of the array are clearly distinct, so it should be vectorized.


-- 
           Summary: can't determine dependence (distinct sections of an
                    array)
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tprince at computer dot org
 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=32378


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

* [Bug fortran/32378] can't determine dependence (distinct sections of an array)
  2007-06-17 15:35 [Bug fortran/32378] New: can't determine dependence (distinct sections of an array) tprince at computer dot org
@ 2007-06-17 15:36 ` tprince at computer dot org
  2007-06-18  1:40 ` tprince at computer dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tprince at computer dot org @ 2007-06-17 15:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from tprince at computer dot org  2007-06-17 15:36 -------
Created an attachment (id=13723)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13723&action=view)
source code test case


-- 


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


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

* [Bug fortran/32378] can't determine dependence (distinct sections of an array)
  2007-06-17 15:35 [Bug fortran/32378] New: can't determine dependence (distinct sections of an array) tprince at computer dot org
  2007-06-17 15:36 ` [Bug fortran/32378] " tprince at computer dot org
@ 2007-06-18  1:40 ` tprince at computer dot org
  2007-06-18  3:16 ` [Bug tree-optimization/32378] " pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tprince at computer dot org @ 2007-06-18  1:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from tprince at computer dot org  2007-06-18 01:39 -------
Performance change for full vectorization is not significant on Core 2 Duo;
suggest reduced ;priority, apologies for submitting at normal severity


-- 

tprince at computer dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor


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


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

* [Bug tree-optimization/32378] can't determine dependence (distinct sections of an array)
  2007-06-17 15:35 [Bug fortran/32378] New: can't determine dependence (distinct sections of an array) tprince at computer dot org
  2007-06-17 15:36 ` [Bug fortran/32378] " tprince at computer dot org
  2007-06-18  1:40 ` tprince at computer dot org
@ 2007-06-18  3:16 ` pinskia at gcc dot gnu dot org
  2007-06-18 11:08 ` dorit at il dot ibm dot com
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-06-18  3:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2007-06-18 03:15 -------
I think some of this is related to PR 32075.  (Looking into IR tells you that).


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|fortran                     |tree-optimization
  GCC build triplet|x86_64-unknown-linux-gnu    |
   GCC host triplet|x86_64-unknown-linux-gnu    |
 GCC target triplet|x86_64-unknown-linux-gnu    |
           Keywords|                            |missed-optimization


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


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

* [Bug tree-optimization/32378] can't determine dependence (distinct sections of an array)
  2007-06-17 15:35 [Bug fortran/32378] New: can't determine dependence (distinct sections of an array) tprince at computer dot org
                   ` (2 preceding siblings ...)
  2007-06-18  3:16 ` [Bug tree-optimization/32378] " pinskia at gcc dot gnu dot org
@ 2007-06-18 11:08 ` dorit at il dot ibm dot com
  2007-06-21 23:32 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: dorit at il dot ibm dot com @ 2007-06-18 11:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from dorit at il dot ibm dot com  2007-06-18 11:08 -------
I see this in the vectorizer dump file (with mainline from a few days ago):

(compute_affine_dependence
  (stmt_a =
D.1423_50 = (*a_49(D))[D.1422_48])
  (stmt_b =
(*a_49(D))[D.1420_51] = D.1425_54)
Data ref a:
(Data Ref:
  stmt: D.1423_50 = (*a_49(D))[D.1422_48];
  ref: (*a_49(D))[D.1422_48];
  base_object: (*a_49(D))[0];
  Access function 0: {pretmp.48_45 + 1, +, 1}_1
  Access function 1: 0B
)
Data ref b:
(Data Ref:
  stmt: (*a_49(D))[D.1420_51] = D.1425_54;
  ref: (*a_49(D))[D.1420_51];
  base_object: (*a_49(D))[0];
  Access function 0: {0, +, 1}_1
  Access function 1: 0B
)
affine dependence test not usable: access function not affine or constant.
(dependence classified: scev_not_known)
)
(compute_affine_dependence
  (stmt_a =
D.1424_53 = (*b_52(D))[D.1420_51])
  (stmt_b =
(*a_49(D))[D.1420_51] = D.1425_54)
)

(the IR looks a bit different than PR32075, but the data-rependence analysis
fails with the same problem). pinskia - are you still planning to address this
issue?


-- 


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


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

* [Bug tree-optimization/32378] can't determine dependence (distinct sections of an array)
  2007-06-17 15:35 [Bug fortran/32378] New: can't determine dependence (distinct sections of an array) tprince at computer dot org
                   ` (3 preceding siblings ...)
  2007-06-18 11:08 ` dorit at il dot ibm dot com
@ 2007-06-21 23:32 ` pinskia at gcc dot gnu dot org
  2007-07-01 12:43 ` dorit at gcc dot gnu dot org
  2007-08-19 13:47 ` dorit at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-06-21 23:32 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-06-21 23:32:19
               date|                            |


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


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

* [Bug tree-optimization/32378] can't determine dependence (distinct sections of an array)
  2007-06-17 15:35 [Bug fortran/32378] New: can't determine dependence (distinct sections of an array) tprince at computer dot org
                   ` (4 preceding siblings ...)
  2007-06-21 23:32 ` pinskia at gcc dot gnu dot org
@ 2007-07-01 12:43 ` dorit at gcc dot gnu dot org
  2007-08-19 13:47 ` dorit at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: dorit at gcc dot gnu dot org @ 2007-07-01 12:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from dorit at gcc dot gnu dot org  2007-07-01 12:43 -------
Dependence analysis now fails with a different message:

(compute_affine_dependence
  (stmt_a =
D.1373_43 = (*a_42(D))[D.1372_41])
  (stmt_b =
(*a_42(D))[D.1370_44] = D.1375_47)
(subscript_dependence_tester
(analyze_overlapping_iterations
  (chrec_a = {pretmp.50_1 + 1, +, 1}_1)
  (chrec_b = {0, +, 1}_1)
(analyze_siv_subscript
siv test failed: unimplemented.
)
  (overlap_iterations_a = not known
)
  (overlap_iterations_b = not known
)
)
(dependence classified: scev_not_known)
)
)

Sebastian - any thughts/plans?


-- 


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


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

* [Bug tree-optimization/32378] can't determine dependence (distinct sections of an array)
  2007-06-17 15:35 [Bug fortran/32378] New: can't determine dependence (distinct sections of an array) tprince at computer dot org
                   ` (5 preceding siblings ...)
  2007-07-01 12:43 ` dorit at gcc dot gnu dot org
@ 2007-08-19 13:47 ` dorit at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: dorit at gcc dot gnu dot org @ 2007-08-19 13:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from dorit at gcc dot gnu dot org  2007-08-19 13:47 -------
> Sebastian - any thughts/plans?

Here's another testcase:

subroutine sub(aa,bb,n,m)
  implicit none
  integer, intent(in) :: n,m
  real, intent(inout) :: aa(n,m)
  real, intent(in)    :: bb(n,m)
  integer :: i,j
 do j= 2,n
    do i = 1,m
      aa(i,j)= aa(i,j-1)+bb(i,j-1)
    enddo
  enddo
end subroutine
end

Here too we get:

(compute_affine_dependence
  (stmt_a =
D.1385_55 = (*aa_54(D))[D.1384_53])
  (stmt_b =
(*aa_54(D))[D.1380_49] = D.1390_62)
(subscript_dependence_tester
(analyze_overlapping_iterations
  (chrec_a = {pretmp.34_76 + 1, +, 1}_2)
  (chrec_b = {pretmp.34_32 + 1, +, 1}_2)
(analyze_siv_subscript
siv test failed: unimplemented.
)
  (overlap_iterations_a = not known
)
  (overlap_iterations_b = not known
)
)
(dependence classified: scev_not_known)
)
)


-- 


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


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

end of thread, other threads:[~2007-08-19 13:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-17 15:35 [Bug fortran/32378] New: can't determine dependence (distinct sections of an array) tprince at computer dot org
2007-06-17 15:36 ` [Bug fortran/32378] " tprince at computer dot org
2007-06-18  1:40 ` tprince at computer dot org
2007-06-18  3:16 ` [Bug tree-optimization/32378] " pinskia at gcc dot gnu dot org
2007-06-18 11:08 ` dorit at il dot ibm dot com
2007-06-21 23:32 ` pinskia at gcc dot gnu dot org
2007-07-01 12:43 ` dorit at gcc dot gnu dot org
2007-08-19 13:47 ` dorit 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).