This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix PR44020
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 7 May 2010 13:54:25 +0200 (CEST)
- Subject: [PATCH] Fix PR44020
Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk.
Richard.
2010-05-07 Richard Guenther <rguenther@suse.de>
PR tree-optimization/44020
* tree-ssa-pre.c (execute_pre): Do not remove dead inserted
code when PRE is not yet initialized.
Index: gcc/tree-ssa-pre.c
===================================================================
*** gcc/tree-ssa-pre.c (revision 159149)
--- gcc/tree-ssa-pre.c (working copy)
*************** execute_pre (bool do_fre)
*** 4710,4726 ****
if (!run_scc_vn (do_fre))
{
if (!do_fre)
! {
! remove_dead_inserted_code ();
! loop_optimizer_finalize ();
! }
return 0;
}
init_pre (do_fre);
scev_initialize ();
-
/* Collect and value number expressions computed in each basic block. */
compute_avail ();
--- 4710,4723 ----
if (!run_scc_vn (do_fre))
{
if (!do_fre)
! loop_optimizer_finalize ();
return 0;
}
+
init_pre (do_fre);
scev_initialize ();
/* Collect and value number expressions computed in each basic block. */
compute_avail ();