diff options
author | Richard Guenther <rguenther@suse.de> | 2010-05-07 11:55:21 +0000 |
---|---|---|
committer | Richard Guenther <rguenther@suse.de> | 2010-05-07 11:55:21 +0000 |
commit | 4cb232e395f960b7601385ff7034af6d436f5b20 (patch) | |
tree | fdebc476092a834e37ca3655584a1c9012ba3e50 /gcc/tree-ssa-pre.c | |
parent | 8a4d2fe23d2e4e97b5748549702addaab90c1698 (diff) |
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.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@159150 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-pre.c')
-rw-r--r-- | gcc/tree-ssa-pre.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c index 49dff65b37f..514383d7773 100644 --- a/gcc/tree-ssa-pre.c +++ b/gcc/tree-ssa-pre.c @@ -4710,17 +4710,14 @@ execute_pre (bool do_fre) if (!run_scc_vn (do_fre)) { if (!do_fre) - { - remove_dead_inserted_code (); - loop_optimizer_finalize (); - } + loop_optimizer_finalize (); return 0; } + init_pre (do_fre); scev_initialize (); - /* Collect and value number expressions computed in each basic block. */ compute_avail (); |