Bug 19067 - ICE in tree-if-conv
Summary: ICE in tree-if-conv
Status: RESOLVED DUPLICATE of bug 18815
Alias: None
Product: gcc
Classification: Unclassified
Component: tree-optimization (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
: 19096 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-12-18 13:32 UTC by Zdenek Dvorak
Modified: 2005-01-26 20:37 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2004-12-20 20:43:39


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zdenek Dvorak 2004-12-18 13:32:48 UTC
With the following patch, both testcases for tree if conversion
(gcc.dg/tree-ssa/ifc-20040816-1.c and gcc.dg/tree-ssa/ifc-20040816-2.c)
ICE, because they produce wrong ssa.

I was unable to prepare a testcase for clean branch, however the patch 
obviously should not cause any problems.

Index: tree-optimize.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-optimize.c,v
retrieving revision 2.65
diff -c -3 -p -r2.65 tree-optimize.c
*** tree-optimize.c     30 Nov 2004 15:38:33 -0000      2.65
--- tree-optimize.c     15 Dec 2004 01:01:15 -0000
*************** init_tree_optimization_passes (void)
*** 378,383 ****
--- 378,385 ----
    NEXT_PASS (pass_may_alias);
    NEXT_PASS (pass_split_crit_edges);
    NEXT_PASS (pass_pre);
+   NEXT_PASS (pass_dominator);
+   NEXT_PASS (pass_dce);
    NEXT_PASS (pass_loop);
    NEXT_PASS (pass_dominator);
    NEXT_PASS (pass_redundant_phi);
Comment 1 Andrew Pinski 2004-12-18 18:28:58 UTC
I don't know but could possible the patch in here: <http://gcc.gnu.org/ml/gcc-patches/2004-12/
msg00514.html> which is already on the tcb branch help here?
Comment 2 Devang Patel 2004-12-20 20:05:21 UTC
Subject: Re:  ICE in tree-if-conv

I'll verify whether TCB patch works here or not.

Comment 3 Devang Patel 2004-12-20 20:32:39 UTC
Subject: Re:  ICE in tree-if-conv


On Dec 18, 2004, at 10:28 AM, pinskia at gcc dot gnu dot org wrote:

> I don't know but could possible the patch in here: 
> <http://gcc.gnu.org/ml/gcc-patches/2004-12/
> msg00514.html> which is already on the tcb branch help here?

Yes, this patch helps.

Comment 4 Andrew Pinski 2004-12-20 20:43:39 UTC
Cool thanks Devang for testing the patch.
Comment 5 Serge Belyshev 2004-12-21 09:28:05 UTC
*** Bug 19096 has been marked as a duplicate of this bug. ***
Comment 6 Andrew Pinski 2005-01-26 20:37:29 UTC

*** This bug has been marked as a duplicate of 18815 ***