[PATCH] Fix PR44020
Richard Guenther
rguenther@suse.de
Fri May 7 11:54:00 GMT 2010
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 ();
More information about the Gcc-patches
mailing list