* [Bug middle-end/38385] ICE with -O2 -ftree-loop-distribution
2008-12-03 16:35 [Bug middle-end/38385] New: ICE with -O2 -ftree-loop-distribution tomby at gcc dot gnu dot org
@ 2008-12-03 16:37 ` tomby at gcc dot gnu dot org
2008-12-03 16:42 ` tomby at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: tomby at gcc dot gnu dot org @ 2008-12-03 16:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from tomby at gcc dot gnu dot org 2008-12-03 16:35 -------
Created an attachment (id=16816)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16816&action=view)
ICE with -O2 -ftree-loop-distribution
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38385
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/38385] ICE with -O2 -ftree-loop-distribution
2008-12-03 16:35 [Bug middle-end/38385] New: ICE with -O2 -ftree-loop-distribution tomby at gcc dot gnu dot org
2008-12-03 16:37 ` [Bug middle-end/38385] " tomby at gcc dot gnu dot org
@ 2008-12-03 16:42 ` tomby at gcc dot gnu dot org
2008-12-03 16:43 ` tomby at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: tomby at gcc dot gnu dot org @ 2008-12-03 16:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from tomby at gcc dot gnu dot org 2008-12-03 16:40 -------
It seems that after removing bbs in generate_builtin (tree-loop-distribution.c)
some phis has bad incoming edges.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38385
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/38385] ICE with -O2 -ftree-loop-distribution
2008-12-03 16:35 [Bug middle-end/38385] New: ICE with -O2 -ftree-loop-distribution tomby at gcc dot gnu dot org
2008-12-03 16:37 ` [Bug middle-end/38385] " tomby at gcc dot gnu dot org
2008-12-03 16:42 ` tomby at gcc dot gnu dot org
@ 2008-12-03 16:43 ` tomby at gcc dot gnu dot org
2008-12-03 22:21 ` spop at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: tomby at gcc dot gnu dot org @ 2008-12-03 16:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from tomby at gcc dot gnu dot org 2008-12-03 16:41 -------
Created an attachment (id=16817)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16817&action=view)
This patch fixes the problem
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38385
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/38385] ICE with -O2 -ftree-loop-distribution
2008-12-03 16:35 [Bug middle-end/38385] New: ICE with -O2 -ftree-loop-distribution tomby at gcc dot gnu dot org
` (2 preceding siblings ...)
2008-12-03 16:43 ` tomby at gcc dot gnu dot org
@ 2008-12-03 22:21 ` spop at gcc dot gnu dot org
2008-12-29 20:22 ` [Bug tree-optimization/38385] " reichelt at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: spop at gcc dot gnu dot org @ 2008-12-03 22:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from spop at gcc dot gnu dot org 2008-12-03 22:20 -------
Subject: Re: ICE with -O2 -ftree-loop-distribution
The patch looks good. Please fix formatting of the braces on the for
stmt, and also add a more detailed description for the function
fix_phis, saying what the arguments are doing.
Thanks,
Sebastian
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38385
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/38385] ICE with -O2 -ftree-loop-distribution
2008-12-03 16:35 [Bug middle-end/38385] New: ICE with -O2 -ftree-loop-distribution tomby at gcc dot gnu dot org
` (3 preceding siblings ...)
2008-12-03 22:21 ` spop at gcc dot gnu dot org
@ 2008-12-29 20:22 ` reichelt at gcc dot gnu dot org
2009-01-12 15:37 ` tomby at gcc dot gnu dot org
2009-01-16 21:01 ` reichelt at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-12-29 20:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from reichelt at gcc dot gnu dot org 2008-12-29 20:20 -------
Confirmed. Shorter testcase (crashes with "-O -ftree-loop-distribution"):
=====================================
int foo();
void bar()
{
int i, j, x[2], y[2], z[2];
for (i = 0; i < 2; ++i)
if (foo())
{
for (j = 0; j < 2; ++j)
if (z[j])
z[j] = 0;
for (j = 0; j < 2; ++j)
{
x[j] = 0;
y[j] = 0;
}
}
if (x[0] && y[0])
foo();
}
=====================================
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Component|middle-end |tree-optimization
Ever Confirmed|0 |1
Keywords| |monitored
Last reconfirmed|0000-00-00 00:00:00 |2008-12-29 20:20:47
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38385
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/38385] ICE with -O2 -ftree-loop-distribution
2008-12-03 16:35 [Bug middle-end/38385] New: ICE with -O2 -ftree-loop-distribution tomby at gcc dot gnu dot org
` (4 preceding siblings ...)
2008-12-29 20:22 ` [Bug tree-optimization/38385] " reichelt at gcc dot gnu dot org
@ 2009-01-12 15:37 ` tomby at gcc dot gnu dot org
2009-01-16 21:01 ` reichelt at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: tomby at gcc dot gnu dot org @ 2009-01-12 15:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from tomby at gcc dot gnu dot org 2009-01-12 15:37 -------
Subject: Bug 38385
Author: tomby
Date: Mon Jan 12 15:37:09 2009
New Revision: 143291
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143291
Log:
PR middlend/38385
* tree-loop-distribution.c (prop_phis): New function.
(generate_builtin): Call prop_phis.
* testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
Added:
trunk/gcc/testsuite/gcc.dg/tree-ssa/pr38385.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/tree-loop-distribution.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38385
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/38385] ICE with -O2 -ftree-loop-distribution
2008-12-03 16:35 [Bug middle-end/38385] New: ICE with -O2 -ftree-loop-distribution tomby at gcc dot gnu dot org
` (5 preceding siblings ...)
2009-01-12 15:37 ` tomby at gcc dot gnu dot org
@ 2009-01-16 21:01 ` reichelt at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-01-16 21:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from reichelt at gcc dot gnu dot org 2009-01-16 21:01 -------
Fixed.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38385
^ permalink raw reply [flat|nested] 8+ messages in thread