diff options
author | Michael Matz <matz@suse.de> | 2010-11-26 16:51:39 +0000 |
---|---|---|
committer | Michael Matz <matz@gcc.gnu.org> | 2010-11-26 16:51:39 +0000 |
commit | f7882debb8223bd221deed9693c4ea07b7a36808 (patch) | |
tree | 4d51b8434dfcafe81793e2040b84ada057bdbbc5 /gcc/tree-ssa-copy.c | |
parent | 67701d1ddcc49905765c0a7b6610e9c284f467cd (diff) | |
download | gcc-f7882debb8223bd221deed9693c4ea07b7a36808.zip gcc-f7882debb8223bd221deed9693c4ea07b7a36808.tar.gz gcc-f7882debb8223bd221deed9693c4ea07b7a36808.tar.bz2 |
tree-ssa-copy.c (fini_copy_prop): Don't DCE when we have loops.
* tree-ssa-copy.c (fini_copy_prop): Don't DCE when we have loops.
* passes.c (init_optimization_passes): Remove superfluous
copy-prop pass.
From-SVN: r167184
Diffstat (limited to 'gcc/tree-ssa-copy.c')
-rw-r--r-- | gcc/tree-ssa-copy.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/tree-ssa-copy.c b/gcc/tree-ssa-copy.c index 6837033..d552c3a 100644 --- a/gcc/tree-ssa-copy.c +++ b/gcc/tree-ssa-copy.c @@ -775,7 +775,9 @@ fini_copy_prop (void) duplicate_ssa_name_ptr_info (copy_of[i].value, SSA_NAME_PTR_INFO (var)); } - substitute_and_fold (get_value, NULL, true); + /* Don't do DCE if we have loops. That's the simplest way to not + destroy the scev cache. */ + substitute_and_fold (get_value, NULL, !current_loops); free (copy_of); } |