* [Bug libfortran/21468] vectorizing libfortran
[not found] <bug-21468-10391@http.gcc.gnu.org/bugzilla/>
@ 2005-11-11 21:55 ` jb at gcc dot gnu dot org
2005-11-11 23:13 ` jb at gcc dot gnu dot org
` (8 subsequent siblings)
9 siblings, 0 replies; 14+ messages in thread
From: jb at gcc dot gnu dot org @ 2005-11-11 21:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jb at gcc dot gnu dot org 2005-11-11 21:55 -------
Seems like libgfortran vectorizes much better now. Compiling with
"-ftree-vectorize -ftree-vectorizer-verbose=5 -msse2" added to CFLAGS (I didn't
try with FCFLAGS) and grepping the output for LOOP VECTORIZED shows
../../../trunk/libgfortran/generated/maxloc0_4_i4.c:232: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/maxloc0_8_i4.c:232: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/maxloc0_4_i8.c:232: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/maxloc0_8_i8.c:232: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/maxloc0_4_r4.c:232: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/maxloc0_8_r4.c:232: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/maxloc0_4_r8.c:232: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/maxloc0_8_r8.c:232: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/maxloc0_4_r10.c:232: note: LOOP
VECTORIZED.
../../../trunk/libgfortran/generated/maxloc0_8_r10.c:232: note: LOOP
VECTORIZED.
../../../trunk/libgfortran/generated/maxloc1_4_i4.c:279: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/maxloc1_8_i4.c:279: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/maxloc1_4_i8.c:279: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/maxloc1_8_i8.c:279: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/maxloc1_4_r4.c:279: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/maxloc1_8_r4.c:279: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/maxloc1_4_r8.c:279: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/maxloc1_8_r8.c:279: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/maxloc1_4_r10.c:279: note: LOOP
VECTORIZED.
../../../trunk/libgfortran/generated/maxloc1_8_r10.c:279: note: LOOP
VECTORIZED.
../../../trunk/libgfortran/generated/maxval_i4.c:273: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/maxval_i8.c:273: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/maxval_r4.c:273: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/maxval_r8.c:273: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/maxval_r10.c:273: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/minloc0_4_i4.c:232: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/minloc0_8_i4.c:232: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/minloc0_4_i8.c:232: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/minloc0_8_i8.c:232: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/minloc0_4_r4.c:232: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/minloc0_8_r4.c:232: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/minloc0_4_r8.c:232: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/minloc0_8_r8.c:232: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/minloc0_4_r10.c:232: note: LOOP
VECTORIZED.
../../../trunk/libgfortran/generated/minloc0_8_r10.c:232: note: LOOP
VECTORIZED.
../../../trunk/libgfortran/generated/minloc1_4_i4.c:279: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/minloc1_8_i4.c:279: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/minloc1_4_i8.c:279: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/minloc1_8_i8.c:279: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/minloc1_4_r4.c:279: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/minloc1_8_r4.c:279: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/minloc1_4_r8.c:279: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/minloc1_8_r8.c:279: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/minloc1_4_r10.c:279: note: LOOP
VECTORIZED.
../../../trunk/libgfortran/generated/minloc1_8_r10.c:279: note: LOOP
VECTORIZED.
../../../trunk/libgfortran/generated/minval_i4.c:273: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/minval_i8.c:273: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/minval_r4.c:273: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/minval_r8.c:273: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/minval_r10.c:273: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/product_i4.c:271: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/product_i8.c:271: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/product_r4.c:271: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/product_r8.c:271: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/product_r10.c:271: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/product_c4.c:271: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/product_c8.c:271: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/product_c10.c:271: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/sum_i4.c:271: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/sum_i8.c:271: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/sum_r4.c:271: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/sum_r8.c:271: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/sum_r10.c:271: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/sum_c4.c:271: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/sum_c8.c:271: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/sum_c10.c:271: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/matmul_i4.c:188: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/matmul_i8.c:188: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/matmul_r4.c:188: note: LOOP VECTORIZED.
../../../trunk/libgfortran/generated/matmul_r8.c:188: note: LOOP VECTORIZED.
../../../trunk/libgfortran/io/write.c:763: note: LOOP VECTORIZED.
../../../trunk/libgfortran/intrinsics/date_and_time.c:235: note: LOOP
VECTORIZED.
../../../trunk/libgfortran/intrinsics/pack_generic.c:121: note: LOOP
VECTORIZED.
../../../trunk/libgfortran/intrinsics/unpack_generic.c:120: note: LOOP
VECTORIZED.
Unfortunalety the vectorized loop for matmul is not the main loop, rather a
small auxiliary one.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21468
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libfortran/21468] vectorizing libfortran
[not found] <bug-21468-10391@http.gcc.gnu.org/bugzilla/>
2005-11-11 21:55 ` [Bug libfortran/21468] vectorizing libfortran jb at gcc dot gnu dot org
@ 2005-11-11 23:13 ` jb at gcc dot gnu dot org
2005-11-13 19:42 ` jb at gcc dot gnu dot org
` (7 subsequent siblings)
9 siblings, 0 replies; 14+ messages in thread
From: jb at gcc dot gnu dot org @ 2005-11-11 23:13 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jb at gcc dot gnu dot org 2005-11-11 23:13 -------
Actually, by marking the arguments to matmul as restrict pointers, I was able
to vectorize the main loop for unit stride.
I'll produce a patch at some point..
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21468
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libfortran/21468] vectorizing libfortran
[not found] <bug-21468-10391@http.gcc.gnu.org/bugzilla/>
2005-11-11 21:55 ` [Bug libfortran/21468] vectorizing libfortran jb at gcc dot gnu dot org
2005-11-11 23:13 ` jb at gcc dot gnu dot org
@ 2005-11-13 19:42 ` jb at gcc dot gnu dot org
2005-11-14 19:48 ` jb at gcc dot gnu dot org
` (6 subsequent siblings)
9 siblings, 0 replies; 14+ messages in thread
From: jb at gcc dot gnu dot org @ 2005-11-13 19:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jb at gcc dot gnu dot org 2005-11-13 19:42 -------
Patch for matmul here: http://gcc.gnu.org/ml/fortran/2005-11/msg00366.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21468
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libfortran/21468] vectorizing libfortran
[not found] <bug-21468-10391@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2005-11-13 19:42 ` jb at gcc dot gnu dot org
@ 2005-11-14 19:48 ` jb at gcc dot gnu dot org
2006-01-06 4:31 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
9 siblings, 0 replies; 14+ messages in thread
From: jb at gcc dot gnu dot org @ 2005-11-14 19:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from jb at gcc dot gnu dot org 2005-11-14 19:48 -------
Subject: Bug 21468
Author: jb
Date: Mon Nov 14 19:48:31 2005
New Revision: 106898
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106898
Log:
2005-11-14 Janne Blomqvist <jb@gcc.gnu.org>
PR fortran/21468
* Makefile.am: Add -ftree-vectorize for compiling matmul.
* m4/matmul.m4: Add const and restrict to type declarations as
appropriate.
* m4/matmull.m4: Likewise.
* Makefile.in: Regenerated.
* generated/matmul_*.c: Likewise.
Modified:
trunk/libgfortran/ChangeLog
trunk/libgfortran/Makefile.am
trunk/libgfortran/Makefile.in
trunk/libgfortran/generated/matmul_c10.c
trunk/libgfortran/generated/matmul_c16.c
trunk/libgfortran/generated/matmul_c4.c
trunk/libgfortran/generated/matmul_c8.c
trunk/libgfortran/generated/matmul_i16.c
trunk/libgfortran/generated/matmul_i4.c
trunk/libgfortran/generated/matmul_i8.c
trunk/libgfortran/generated/matmul_l16.c
trunk/libgfortran/generated/matmul_l4.c
trunk/libgfortran/generated/matmul_l8.c
trunk/libgfortran/generated/matmul_r10.c
trunk/libgfortran/generated/matmul_r16.c
trunk/libgfortran/generated/matmul_r4.c
trunk/libgfortran/generated/matmul_r8.c
trunk/libgfortran/m4/matmul.m4
trunk/libgfortran/m4/matmull.m4
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21468
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libfortran/21468] vectorizing libfortran
[not found] <bug-21468-10391@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2005-11-14 19:48 ` jb at gcc dot gnu dot org
@ 2006-01-06 4:31 ` pinskia at gcc dot gnu dot org
2006-01-06 14:47 ` jb at gcc dot gnu dot org
` (4 subsequent siblings)
9 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-06 4:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from pinskia at gcc dot gnu dot org 2006-01-06 04:31 -------
Fixed for 4.1.0.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21468
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libfortran/21468] vectorizing libfortran
[not found] <bug-21468-10391@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2006-01-06 4:31 ` pinskia at gcc dot gnu dot org
@ 2006-01-06 14:47 ` jb at gcc dot gnu dot org
2006-01-08 13:49 ` dorit at il dot ibm dot com
` (3 subsequent siblings)
9 siblings, 0 replies; 14+ messages in thread
From: jb at gcc dot gnu dot org @ 2006-01-06 14:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from jb at gcc dot gnu dot org 2006-01-06 14:47 -------
Reopening since many of the intrinsics could still vectorize better.
--
jb at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21468
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libfortran/21468] vectorizing libfortran
[not found] <bug-21468-10391@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2006-01-06 14:47 ` jb at gcc dot gnu dot org
@ 2006-01-08 13:49 ` dorit at il dot ibm dot com
2006-01-29 18:05 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 14+ messages in thread
From: dorit at il dot ibm dot com @ 2006-01-08 13:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from dorit at il dot ibm dot com 2006-01-08 13:49 -------
> Reopening since many of the intrinsics could still vectorize better.
Could help if you list specific functions that you expect to get vectorized. As
far as dotprod is concerned - if it's operating on floats, you need to use
-ffast-math or -funsafe-math-optimizations to enable vectorization. If it's
dotprod of integers - probably the recent patches I sent to support reduction
patterns (http://gcc.gnu.org/ml/gcc-patches/2005-12/msg01896.html) would be
required (this functionality is present in auotvect; you can try to see if it's
vectorized any better with autovect-branch).
--
dorit at il dot ibm dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dorit at il dot ibm dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21468
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libfortran/21468] vectorizing libfortran
[not found] <bug-21468-10391@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2006-01-08 13:49 ` dorit at il dot ibm dot com
@ 2006-01-29 18:05 ` pinskia at gcc dot gnu dot org
2006-01-29 18:09 ` pinskia at gcc dot gnu dot org
2007-04-18 22:02 ` fxcoudert at gcc dot gnu dot org
9 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-29 18:05 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.1.0 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21468
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libfortran/21468] vectorizing libfortran
[not found] <bug-21468-10391@http.gcc.gnu.org/bugzilla/>
` (7 preceding siblings ...)
2006-01-29 18:05 ` pinskia at gcc dot gnu dot org
@ 2006-01-29 18:09 ` pinskia at gcc dot gnu dot org
2007-04-18 22:02 ` fxcoudert at gcc dot gnu dot org
9 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-29 18:09 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |NEW
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21468
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libfortran/21468] vectorizing libfortran
[not found] <bug-21468-10391@http.gcc.gnu.org/bugzilla/>
` (8 preceding siblings ...)
2006-01-29 18:09 ` pinskia at gcc dot gnu dot org
@ 2007-04-18 22:02 ` fxcoudert at gcc dot gnu dot org
9 siblings, 0 replies; 14+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-04-18 22:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from fxcoudert at gcc dot gnu dot org 2007-04-18 23:01 -------
Closing this. We should really open new PRs for different intrinsics, when we
have code and perf measurements.
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21468
^ permalink raw reply [flat|nested] 14+ messages in thread