public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug fortran/21470] New: mark subroutine arguments __restrict__ @ 2005-05-09 14:47 tkoenig at gcc dot gnu dot org 2005-05-09 14:48 ` [Bug fortran/21470] " tkoenig at gcc dot gnu dot org ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: tkoenig at gcc dot gnu dot org @ 2005-05-09 14:47 UTC (permalink / raw) To: gcc-bugs Fortran subroutine arguments should be marked as __restrict__. Currently, the following code isn't vectorized: $ cat loopsum.f90 subroutine foo(a,b,c,n) real, dimension(n), intent(in) :: a,b real, dimension(n), intent(out) :: c do i=1,n c(i) = a(i)+b(i) end do end $ gfortran -O -S -ftree-vectorize -ftree-vectorizer-verbose=5 loopsum.f90 loopsum.f90:4: note: not vectorized: can't determine dependence between: (*a_18) [D.527_17] and (*c_25)[D.527_17] loopsum.f90:1: note: vectorized 0 loops in function. $ gfortran -v Using built-in specs. Target: ia64-unknown-linux-gnu Configured with: ../gcc-4.1-20050508/configure --prefix=/home/zfkts --enable- languages=c,f95 Thread model: posix gcc version 4.1.0 20050508 (experimental) -- Summary: mark subroutine arguments __restrict__ Product: gcc Version: 4.1.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal Priority: P2 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: tkoenig at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21470 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/21470] mark subroutine arguments __restrict__ 2005-05-09 14:47 [Bug fortran/21470] New: mark subroutine arguments __restrict__ tkoenig at gcc dot gnu dot org @ 2005-05-09 14:48 ` tkoenig at gcc dot gnu dot org 2005-05-09 14:53 ` [Bug tree-optimization/21470] -fargument-noalias-global has no effect for the vectorizer pinskia at gcc dot gnu dot org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: tkoenig at gcc dot gnu dot org @ 2005-05-09 14:48 UTC (permalink / raw) To: gcc-bugs -- What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21470 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/21470] -fargument-noalias-global has no effect for the vectorizer 2005-05-09 14:47 [Bug fortran/21470] New: mark subroutine arguments __restrict__ tkoenig at gcc dot gnu dot org 2005-05-09 14:48 ` [Bug fortran/21470] " tkoenig at gcc dot gnu dot org @ 2005-05-09 14:53 ` pinskia at gcc dot gnu dot org 2005-05-09 15:54 ` pinskia at gcc dot gnu dot org 2005-08-06 19:47 ` pinskia at gcc dot gnu dot org 3 siblings, 0 replies; 5+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-05-09 14:53 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-09 14:53 ------- Actually -fargument-noalias-global is set to true for fortran and should be respected instead of marking them as restrict. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Component|fortran |tree-optimization Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2005-05-09 14:53:51 date| | Summary|mark subroutine arguments |-fargument-noalias-global |__restrict__ |has no effect for the | |vectorizer http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21470 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/21470] -fargument-noalias-global has no effect for the vectorizer 2005-05-09 14:47 [Bug fortran/21470] New: mark subroutine arguments __restrict__ tkoenig at gcc dot gnu dot org 2005-05-09 14:48 ` [Bug fortran/21470] " tkoenig at gcc dot gnu dot org 2005-05-09 14:53 ` [Bug tree-optimization/21470] -fargument-noalias-global has no effect for the vectorizer pinskia at gcc dot gnu dot org @ 2005-05-09 15:54 ` pinskia at gcc dot gnu dot org 2005-08-06 19:47 ` pinskia at gcc dot gnu dot org 3 siblings, 0 replies; 5+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-05-09 15:54 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-09 15:54 ------- If the aliasing information is correct on the VOPS, I would assume that the vectorizer would not have problems with it. Note there is another bug about this option, see PR 17064. -- What |Removed |Added ---------------------------------------------------------------------------- CC| |pinskia at gcc dot gnu dot | |org BugsThisDependsOn| |17064 Keywords| |alias http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21470 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/21470] -fargument-noalias-global has no effect for the vectorizer 2005-05-09 14:47 [Bug fortran/21470] New: mark subroutine arguments __restrict__ tkoenig at gcc dot gnu dot org ` (2 preceding siblings ...) 2005-05-09 15:54 ` pinskia at gcc dot gnu dot org @ 2005-08-06 19:47 ` pinskia at gcc dot gnu dot org 3 siblings, 0 replies; 5+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-08-06 19:47 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-06 19:47 ------- I have a fix which I need to bootstrap/test. -- What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21470 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-08-06 19:47 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2005-05-09 14:47 [Bug fortran/21470] New: mark subroutine arguments __restrict__ tkoenig at gcc dot gnu dot org 2005-05-09 14:48 ` [Bug fortran/21470] " tkoenig at gcc dot gnu dot org 2005-05-09 14:53 ` [Bug tree-optimization/21470] -fargument-noalias-global has no effect for the vectorizer pinskia at gcc dot gnu dot org 2005-05-09 15:54 ` pinskia at gcc dot gnu dot org 2005-08-06 19:47 ` 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).