public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/50412] New: gfortran -Ofast ICE in vect_do_peeling_for_loop_bound
@ 2011-09-15 8:45 zeccav at gmail dot com
2011-09-15 10:07 ` [Bug tree-optimization/50412] " Joost.VandeVondele at pci dot uzh.ch
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: zeccav at gmail dot com @ 2011-09-15 8:45 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50412
Bug #: 50412
Summary: gfortran -Ofast ICE in vect_do_peeling_for_loop_bound
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zeccav@gmail.com
Created attachment 25288
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25288
please compile it with -Ofast
gfortran -Ofast ICE in vect_do_peeling_for_loop_bound
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/50412] gfortran -Ofast ICE in vect_do_peeling_for_loop_bound
2011-09-15 8:45 [Bug fortran/50412] New: gfortran -Ofast ICE in vect_do_peeling_for_loop_bound zeccav at gmail dot com
@ 2011-09-15 10:07 ` Joost.VandeVondele at pci dot uzh.ch
2011-09-15 11:42 ` irar at il dot ibm.com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Joost.VandeVondele at pci dot uzh.ch @ 2011-09-15 10:07 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50412
Joost VandeVondele <Joost.VandeVondele at pci dot uzh.ch> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011-09-15
Component|fortran |tree-optimization
Ever Confirmed|0 |1
--- Comment #1 from Joost VandeVondele <Joost.VandeVondele at pci dot uzh.ch> 2011-09-15 10:05:27 UTC ---
#0 internal_error (gmsgid=0x117c39a "in %s, at %s:%d") at
../../gcc/gcc/diagnostic.c:833
#1 0x0000000000e3f394 in fancy_abort (file=Unhandled dwarf expression opcode
0xf3
) at ../../gcc/gcc/diagnostic.c:893
#2 0x0000000000aa5fce in vect_do_peeling_for_loop_bound (loop_vinfo=0x16e3870,
ratio=0x7fffffffda58, cond_expr=0x0, cond_expr_stmt_list=0x0)
at ../../gcc/gcc/tree-vect-loop-manip.c:1931
#3 0x0000000000aa1c7c in vect_transform_loop (loop_vinfo=0x16e3870) at
../../gcc/gcc/tree-vect-loop.c:5161
#4 0x0000000000aae7e3 in vectorize_loops () at
../../gcc/gcc/tree-vectorizer.c:214
#5 0x0000000000876d37 in execute_one_pass (pass=0x1498f00) at
../../gcc/gcc/passes.c:2063
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/50412] gfortran -Ofast ICE in vect_do_peeling_for_loop_bound
2011-09-15 8:45 [Bug fortran/50412] New: gfortran -Ofast ICE in vect_do_peeling_for_loop_bound zeccav at gmail dot com
2011-09-15 10:07 ` [Bug tree-optimization/50412] " Joost.VandeVondele at pci dot uzh.ch
@ 2011-09-15 11:42 ` irar at il dot ibm.com
2011-09-18 10:41 ` irar at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: irar at il dot ibm.com @ 2011-09-15 11:42 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50412
Ira Rosen <irar at il dot ibm.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |irar at il dot ibm.com
AssignedTo|unassigned at gcc dot |irar at il dot ibm.com
|gnu.org |
--- Comment #2 from Ira Rosen <irar at il dot ibm.com> 2011-09-15 11:40:59 UTC ---
The problem is that we don't support loop peeling for outer loops, but we
support single element interleaving that may require peeling. I'll test this
patch:
Index: tree-vect-data-refs.c
===================================================================
--- tree-vect-data-refs.c (revision 178780)
+++ tree-vect-data-refs.c (working copy)
@@ -2055,6 +2059,10 @@ vect_analyze_group_access (struct data_r
HOST_WIDE_INT dr_step = TREE_INT_CST_LOW (step);
HOST_WIDE_INT stride, last_accessed_element = 1;
bool slp_impossible = false;
+ struct loop *loop = NULL;
+
+ if (loop_vinfo)
+ loop = LOOP_VINFO_LOOP (loop_vinfo);
/* For interleaving, STRIDE is STEP counted in elements, i.e., the size of
the
interleaving group (including gaps). */
@@ -2085,11 +2093,17 @@ vect_analyze_group_access (struct data_r
if (loop_vinfo)
{
- LOOP_VINFO_PEELING_FOR_GAPS (loop_vinfo) = true;
-
if (vect_print_dump_info (REPORT_DETAILS))
fprintf (vect_dump, "Data access with gaps requires scalar "
"epilogue loop");
+ if (loop->inner)
+ {
+ if (vect_print_dump_info (REPORT_DETAILS))
+ fprintf (vect_dump, "Peeling for outer loop is not
supported");
+ return false;
+ }
+
+ LOOP_VINFO_PEELING_FOR_GAPS (loop_vinfo) = true;
}
return true;
@@ -2272,10 +2286,17 @@ vect_analyze_group_access (struct data_r
/* There is a gap in the end of the group. */
if (stride - last_accessed_element > 0 && loop_vinfo)
{
- LOOP_VINFO_PEELING_FOR_GAPS (loop_vinfo) = true;
if (vect_print_dump_info (REPORT_DETAILS))
fprintf (vect_dump, "Data access with gaps requires scalar "
"epilogue loop");
+ if (loop->inner)
+ {
+ if (vect_print_dump_info (REPORT_DETAILS))
+ fprintf (vect_dump, "Peeling for outer loop is not
supported");
+ return false;
+ }
+
+ LOOP_VINFO_PEELING_FOR_GAPS (loop_vinfo) = true;
}
}
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/50412] gfortran -Ofast ICE in vect_do_peeling_for_loop_bound
2011-09-15 8:45 [Bug fortran/50412] New: gfortran -Ofast ICE in vect_do_peeling_for_loop_bound zeccav at gmail dot com
2011-09-15 10:07 ` [Bug tree-optimization/50412] " Joost.VandeVondele at pci dot uzh.ch
2011-09-15 11:42 ` irar at il dot ibm.com
@ 2011-09-18 10:41 ` irar at gcc dot gnu.org
2011-09-25 9:27 ` [Bug tree-optimization/50412] [4.6/4.7 Regression] " irar at gcc dot gnu.org
2011-09-25 9:44 ` irar at il dot ibm.com
4 siblings, 0 replies; 6+ messages in thread
From: irar at gcc dot gnu.org @ 2011-09-18 10:41 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50412
--- Comment #3 from irar at gcc dot gnu.org 2011-09-18 08:59:58 UTC ---
Author: irar
Date: Sun Sep 18 08:59:52 2011
New Revision: 178940
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=178940
Log:
PR tree-optimization/50412
* tree-vect-data-refs.c (vect_analyze_group_access): Fail for
acceses that require epilogue loop if vectorizing outer loop.
Added:
trunk/gcc/testsuite/gfortran.dg/vect/pr50412.f90
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-vect-data-refs.c
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/50412] [4.6/4.7 Regression] gfortran -Ofast ICE in vect_do_peeling_for_loop_bound
2011-09-15 8:45 [Bug fortran/50412] New: gfortran -Ofast ICE in vect_do_peeling_for_loop_bound zeccav at gmail dot com
` (2 preceding siblings ...)
2011-09-18 10:41 ` irar at gcc dot gnu.org
@ 2011-09-25 9:27 ` irar at gcc dot gnu.org
2011-09-25 9:44 ` irar at il dot ibm.com
4 siblings, 0 replies; 6+ messages in thread
From: irar at gcc dot gnu.org @ 2011-09-25 9:27 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50412
--- Comment #4 from irar at gcc dot gnu.org 2011-09-25 09:04:24 UTC ---
Author: irar
Date: Sun Sep 25 09:04:19 2011
New Revision: 179160
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179160
Log:
PR tree-optimization/50412
* tree-vect-data-refs.c (vect_analyze_group_access): Fail for
accesses that require epilogue loop if vectorizing outer loop.
Added:
branches/gcc-4_6-branch/gcc/testsuite/gfortran.dg/vect/pr50412.f90
Modified:
branches/gcc-4_6-branch/gcc/ChangeLog
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
branches/gcc-4_6-branch/gcc/tree-vect-data-refs.c
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/50412] [4.6/4.7 Regression] gfortran -Ofast ICE in vect_do_peeling_for_loop_bound
2011-09-15 8:45 [Bug fortran/50412] New: gfortran -Ofast ICE in vect_do_peeling_for_loop_bound zeccav at gmail dot com
` (3 preceding siblings ...)
2011-09-25 9:27 ` [Bug tree-optimization/50412] [4.6/4.7 Regression] " irar at gcc dot gnu.org
@ 2011-09-25 9:44 ` irar at il dot ibm.com
4 siblings, 0 replies; 6+ messages in thread
From: irar at il dot ibm.com @ 2011-09-25 9:44 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50412
Ira Rosen <irar at il dot ibm.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #5 from Ira Rosen <irar at il dot ibm.com> 2011-09-25 09:26:59 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-09-25 9:27 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-15 8:45 [Bug fortran/50412] New: gfortran -Ofast ICE in vect_do_peeling_for_loop_bound zeccav at gmail dot com
2011-09-15 10:07 ` [Bug tree-optimization/50412] " Joost.VandeVondele at pci dot uzh.ch
2011-09-15 11:42 ` irar at il dot ibm.com
2011-09-18 10:41 ` irar at gcc dot gnu.org
2011-09-25 9:27 ` [Bug tree-optimization/50412] [4.6/4.7 Regression] " irar at gcc dot gnu.org
2011-09-25 9:44 ` irar at il dot ibm.com
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).