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);
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?
Subject: Re: ICE in tree-if-conv I'll verify whether TCB patch works here or not.
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.
Cool thanks Devang for testing the patch.
*** Bug 19096 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of 18815 ***