public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/58010] New: ICE in vect_create_epilog_for_reduction, at tree-vect-loop.c:4378
@ 2013-07-28 9:58 antoine.balestrat at gmail dot com
2013-08-02 8:42 ` [Bug tree-optimization/58010] [4.8/4.9 Regression] " mpolacek at gcc dot gnu.org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: antoine.balestrat at gmail dot com @ 2013-07-28 9:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58010
Bug ID: 58010
Summary: ICE in vect_create_epilog_for_reduction, at
tree-vect-loop.c:4378
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: antoine.balestrat at gmail dot com
Hello !
Using GCC 4.9.0 as of 20130728 :
$ cat vect.c
short a, b, c, d;
void f(void)
{
short e;
for(; e; e++)
for(; b; b++);
for(d = 0; d < 4; d++)
a ^= (e ^= 1) || c ? : e;
}
$ xgcc -O2 -funswitch-loops -ftree-vectorize vect.c
vect.c: In function ‘f’:
vect.c:3:6: internal compiler error: in vect_create_epilog_for_reduction, at
tree-vect-loop.c:4378
void f(void)
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
>From gcc-bugs-return-426860-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Jul 28 10:00:38 2013
Return-Path: <gcc-bugs-return-426860-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18135 invoked by alias); 28 Jul 2013 10:00:37 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 18071 invoked by uid 48); 28 Jul 2013 10:00:34 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/58009] Elements with same value in vector subscript in variable definition context
Date: Sun, 28 Jul 2013 10:00:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords
Message-ID: <bug-58009-4-WjIIMBKFiT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58009-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58009-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-07/txt/msg01367.txt.bz2
Content-length: 444
http://gcc.gnu.org/bugzilla/show_bug.cgi?idX009
Thomas Koenig <tkoenig at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
--- Comment #1 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
... and it would be nice to diagnose it (with a hard
error) whenever possible.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/58010] [4.8/4.9 Regression] ICE in vect_create_epilog_for_reduction, at tree-vect-loop.c:4378
2013-07-28 9:58 [Bug tree-optimization/58010] New: ICE in vect_create_epilog_for_reduction, at tree-vect-loop.c:4378 antoine.balestrat at gmail dot com
@ 2013-08-02 8:42 ` mpolacek at gcc dot gnu.org
2013-08-02 14:17 ` wschmidt at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-08-02 8:42 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58010
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-08-02
CC| |mpolacek at gcc dot gnu.org
Known to work| |4.7.3
Target Milestone|--- |4.8.2
Summary|ICE in |[4.8/4.9 Regression] ICE in
|vect_create_epilog_for_redu |vect_create_epilog_for_redu
|ction, at |ction, at
|tree-vect-loop.c:4378 |tree-vect-loop.c:4378
Ever confirmed|0 |1
Known to fail| |4.8.1, 4.9.0
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/58010] [4.8/4.9 Regression] ICE in vect_create_epilog_for_reduction, at tree-vect-loop.c:4378
2013-07-28 9:58 [Bug tree-optimization/58010] New: ICE in vect_create_epilog_for_reduction, at tree-vect-loop.c:4378 antoine.balestrat at gmail dot com
2013-08-02 8:42 ` [Bug tree-optimization/58010] [4.8/4.9 Regression] " mpolacek at gcc dot gnu.org
@ 2013-08-02 14:17 ` wschmidt at gcc dot gnu.org
2013-08-29 12:48 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: wschmidt at gcc dot gnu.org @ 2013-08-02 14:17 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58010
--- Comment #3 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
r189527 is probably a red herring. That just changed the cost model to be
turned on by default at -O3. Somebody who's actively working on the vectorizer
should probably have a look at this.
If you want to narrow it down further, try turning on -fvect-cost-model and
bisecting. The problem will probably show up as being introduced further back
if you do this.
This also suggests a workaround for the OP of using -fno-vect-cost-model, if a
workaround is needed.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/58010] [4.8/4.9 Regression] ICE in vect_create_epilog_for_reduction, at tree-vect-loop.c:4378
2013-07-28 9:58 [Bug tree-optimization/58010] New: ICE in vect_create_epilog_for_reduction, at tree-vect-loop.c:4378 antoine.balestrat at gmail dot com
2013-08-02 8:42 ` [Bug tree-optimization/58010] [4.8/4.9 Regression] " mpolacek at gcc dot gnu.org
2013-08-02 14:17 ` wschmidt at gcc dot gnu.org
@ 2013-08-29 12:48 ` rguenth at gcc dot gnu.org
2013-08-29 13:08 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-08-29 12:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58010
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Mine.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/58010] [4.8/4.9 Regression] ICE in vect_create_epilog_for_reduction, at tree-vect-loop.c:4378
2013-07-28 9:58 [Bug tree-optimization/58010] New: ICE in vect_create_epilog_for_reduction, at tree-vect-loop.c:4378 antoine.balestrat at gmail dot com
` (2 preceding siblings ...)
2013-08-29 12:48 ` rguenth at gcc dot gnu.org
@ 2013-08-29 13:08 ` rguenth at gcc dot gnu.org
2013-08-30 7:48 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-08-29 13:08 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58010
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
In the loop in question we have a dead scalar cycle for which we do not
insert loop-closed PHI nodes. Hm.
The correct fix looks easy though - simply remove the assert. We'll vectorize
dead code, but who cares.
Testing that.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/58010] [4.8/4.9 Regression] ICE in vect_create_epilog_for_reduction, at tree-vect-loop.c:4378
2013-07-28 9:58 [Bug tree-optimization/58010] New: ICE in vect_create_epilog_for_reduction, at tree-vect-loop.c:4378 antoine.balestrat at gmail dot com
` (3 preceding siblings ...)
2013-08-29 13:08 ` rguenth at gcc dot gnu.org
@ 2013-08-30 7:48 ` rguenth at gcc dot gnu.org
2013-08-30 7:51 ` [Bug tree-optimization/58010] [4.8 " rguenth at gcc dot gnu.org
2013-09-03 12:18 ` rguenth at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-08-30 7:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58010
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Fri Aug 30 07:47:54 2013
New Revision: 202095
URL: http://gcc.gnu.org/viewcvs?rev=202095&root=gcc&view=rev
Log:
2013-08-30 Richard Biener <rguenther@suse.de>
PR tree-optimization/58010
* tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
assert that we have a loop-closed PHI.
* gcc.dg/pr58010.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.dg/pr58010.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-vect-loop.c
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/58010] [4.8 Regression] ICE in vect_create_epilog_for_reduction, at tree-vect-loop.c:4378
2013-07-28 9:58 [Bug tree-optimization/58010] New: ICE in vect_create_epilog_for_reduction, at tree-vect-loop.c:4378 antoine.balestrat at gmail dot com
` (4 preceding siblings ...)
2013-08-30 7:48 ` rguenth at gcc dot gnu.org
@ 2013-08-30 7:51 ` rguenth at gcc dot gnu.org
2013-09-03 12:18 ` rguenth at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-08-30 7:51 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58010
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |4.9.0
Summary|[4.8/4.9 Regression] ICE in |[4.8 Regression] ICE in
|vect_create_epilog_for_redu |vect_create_epilog_for_redu
|ction, at |ction, at
|tree-vect-loop.c:4378 |tree-vect-loop.c:4378
Known to fail|4.9.0 |
--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed on trunk sofar.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/58010] [4.8 Regression] ICE in vect_create_epilog_for_reduction, at tree-vect-loop.c:4378
2013-07-28 9:58 [Bug tree-optimization/58010] New: ICE in vect_create_epilog_for_reduction, at tree-vect-loop.c:4378 antoine.balestrat at gmail dot com
` (5 preceding siblings ...)
2013-08-30 7:51 ` [Bug tree-optimization/58010] [4.8 " rguenth at gcc dot gnu.org
@ 2013-09-03 12:18 ` rguenth at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-09-03 12:18 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58010
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2013-09-03 12:18 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-28 9:58 [Bug tree-optimization/58010] New: ICE in vect_create_epilog_for_reduction, at tree-vect-loop.c:4378 antoine.balestrat at gmail dot com
2013-08-02 8:42 ` [Bug tree-optimization/58010] [4.8/4.9 Regression] " mpolacek at gcc dot gnu.org
2013-08-02 14:17 ` wschmidt at gcc dot gnu.org
2013-08-29 12:48 ` rguenth at gcc dot gnu.org
2013-08-29 13:08 ` rguenth at gcc dot gnu.org
2013-08-30 7:48 ` rguenth at gcc dot gnu.org
2013-08-30 7:51 ` [Bug tree-optimization/58010] [4.8 " rguenth at gcc dot gnu.org
2013-09-03 12:18 ` rguenth at gcc dot gnu.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).