public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/57584] New: ice: SSA corruption: Unable to coalesce ssa_names
@ 2013-06-11 10:07 dcb314 at hotmail dot com
2013-06-11 13:15 ` [Bug c/57584] " rguenth at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: dcb314 at hotmail dot com @ 2013-06-11 10:07 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57584
Bug ID: 57584
Summary: ice: SSA corruption: Unable to coalesce ssa_names
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Created attachment 30289
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30289&action=edit
gzipped C source code
The attached source code causes the following crash
on gcc-4.9 trunk dated 20130605 on an AMD x86_64 box
when compiled with -O3.
Unable to coalesce ssa_names 45 and 3671 which are marked as MUST COALESCE.
sp_45(ab) and sp_3671(ab)
In file included from vm.c:661:0:
vm-engine.c: In function ‘vm_debug_engine’:
vm-engine.c:39:1: internal compiler error: SSA corruption
0x9ca5bf fail_abnormal_edge_coalesce
../../src/trunk/gcc/tree-ssa-coalesce.c:898
0x9ca5bf coalesce_partitions
../../src/trunk/gcc/tree-ssa-coalesce.c:1200
0x9ca5bf coalesce_ssa_name()
../../src/trunk/gcc/tree-ssa-coalesce.c:1337
0x981cee remove_ssa_form
../../src/trunk/gcc/tree-outof-ssa.c:900
0x981cee rewrite_out_of_ssa(ssaexpand*)
../../src/trunk/gcc/tree-outof-ssa.c:1133
0x60c694 gimple_expand_cfg
../../src/trunk/gcc/cfgexpand.c:4541
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
>From gcc-bugs-return-424162-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jun 11 10:09:18 2013
Return-Path: <gcc-bugs-return-424162-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18552 invoked by alias); 11 Jun 2013 10:09:18 -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 18168 invoked by uid 48); 11 Jun 2013 10:09:13 -0000
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/30604] Unable to coalesce ssa_names <x> and <y> which are marked as MUST COALESCE
Date: Tue, 11 Jun 2013 10:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dcb314 at hotmail dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: aph at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-30604-4-HjoiUW0pku@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-30604-4@http.gcc.gnu.org/bugzilla/>
References: <bug-30604-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-06/txt/msg00541.txt.bz2
Content-length: 395
http://gcc.gnu.org/bugzilla/show_bug.cgi?id0604
--- Comment #17 from David Binderman <dcb314 at hotmail dot com> ---
(In reply to rguenther@suse.de from comment #16)
> Can you open a new bugreport please? It's very likely a different
> reason than this one.
After a lot of fiddling about, please see #57584
Redhat package guile went to a lot of work to hide
the compiler command line ;-|
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/57584] ice: SSA corruption: Unable to coalesce ssa_names
2013-06-11 10:07 [Bug c/57584] New: ice: SSA corruption: Unable to coalesce ssa_names dcb314 at hotmail dot com
@ 2013-06-11 13:15 ` rguenth at gcc dot gnu.org
2013-06-19 13:28 ` [Bug tree-optimization/57584] [4.9 Regression] " rguenth at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-06-11 13:15 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57584
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-06-11
Blocks| |56982
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed, reducing.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/57584] [4.9 Regression] ice: SSA corruption: Unable to coalesce ssa_names
2013-06-11 10:07 [Bug c/57584] New: ice: SSA corruption: Unable to coalesce ssa_names dcb314 at hotmail dot com
2013-06-11 13:15 ` [Bug c/57584] " rguenth at gcc dot gnu.org
@ 2013-06-19 13:28 ` rguenth at gcc dot gnu.org
2013-06-20 8:41 ` rguenth at gcc dot gnu.org
2013-06-20 10:23 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-06-19 13:28 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57584
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c |tree-optimization
Target Milestone|--- |4.9.0
Summary|ice: SSA corruption: Unable |[4.9 Regression] ice: SSA
|to coalesce ssa_names |corruption: Unable to
| |coalesce ssa_names
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
It's the vectorizer, thus fails at -O -ftree-vectorize already.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/57584] [4.9 Regression] ice: SSA corruption: Unable to coalesce ssa_names
2013-06-11 10:07 [Bug c/57584] New: ice: SSA corruption: Unable to coalesce ssa_names dcb314 at hotmail dot com
2013-06-11 13:15 ` [Bug c/57584] " rguenth at gcc dot gnu.org
2013-06-19 13:28 ` [Bug tree-optimization/57584] [4.9 Regression] " rguenth at gcc dot gnu.org
@ 2013-06-20 8:41 ` rguenth at gcc dot gnu.org
2013-06-20 10:23 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-06-20 8:41 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57584
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
niter analysis computes
(((unsigned long) sp_35(ab) - (unsigned long) (sp_3(ab) + 8)) + 7) / 8))
which the vectorizer inserts, obviously breaking coalescing of sp_35 and sp_3.
It's expand_simple_operations done in niter analysis that breaks this and
I have a patch to fix that.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/57584] [4.9 Regression] ice: SSA corruption: Unable to coalesce ssa_names
2013-06-11 10:07 [Bug c/57584] New: ice: SSA corruption: Unable to coalesce ssa_names dcb314 at hotmail dot com
` (2 preceding siblings ...)
2013-06-20 8:41 ` rguenth at gcc dot gnu.org
@ 2013-06-20 10:23 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-06-20 10:23 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57584
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Thu Jun 20 10:22:33 2013
New Revision: 200237
URL: http://gcc.gnu.org/viewcvs?rev=200237&root=gcc&view=rev
Log:
2013-06-20 Richard Biener <rguenther@suse.de>
PR tree-optimization/57584
* tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
SSA names into the expanded expression that take part in
abnormal coalescing.
* gcc.dg/torture/pr57584.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.dg/torture/pr57584.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-loop-niter.c
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-06-20 10:23 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-11 10:07 [Bug c/57584] New: ice: SSA corruption: Unable to coalesce ssa_names dcb314 at hotmail dot com
2013-06-11 13:15 ` [Bug c/57584] " rguenth at gcc dot gnu.org
2013-06-19 13:28 ` [Bug tree-optimization/57584] [4.9 Regression] " rguenth at gcc dot gnu.org
2013-06-20 8:41 ` rguenth at gcc dot gnu.org
2013-06-20 10:23 ` 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).