diff options
author | Richard Guenther <rguenther@suse.de> | 2012-09-19 13:46:34 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2012-09-19 13:46:34 +0000 |
commit | 2d5fec4e65f30764399a4461d908657eb819ef30 (patch) | |
tree | a6950841728d1302fb6f25c4a1d52695bec2345d | |
parent | 768505569c3634f2e726599a7532a7badf74f38c (diff) | |
download | gcc-2d5fec4e65f30764399a4461d908657eb819ef30.zip gcc-2d5fec4e65f30764399a4461d908657eb819ef30.tar.gz gcc-2d5fec4e65f30764399a4461d908657eb819ef30.tar.bz2 |
passes.c (init_optimization_passes): For -Og move pass_object_sizes inbetween CCP and copyprop.
2012-09-19 Richard Guenther <rguenther@suse.de>
* passes.c (init_optimization_passes): For -Og move
pass_object_sizes inbetween CCP and copyprop.
From-SVN: r191476
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/passes.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c9d8012..e7c8f9b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2012-09-19 Richard Guenther <rguenther@suse.de> + * passes.c (init_optimization_passes): For -Og move + pass_object_sizes inbetween CCP and copyprop. + +2012-09-19 Richard Guenther <rguenther@suse.de> + * tree-ssa-forwprop.c (get_prop_source_stmt): Simplify. 2012-09-19 Jan Hubicka <jh@suse.cz> diff --git a/gcc/passes.c b/gcc/passes.c index c96d533..97a1d0e 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -1528,11 +1528,13 @@ init_optimization_passes (void) NEXT_PASS (pass_lower_vector_ssa); /* Perform simple scalar cleanup which is constant/copy propagation. */ NEXT_PASS (pass_ccp); + NEXT_PASS (pass_object_sizes); + /* Copy propagation also copy-propagates constants, this is necessary + to forward object-size results properly. */ NEXT_PASS (pass_copy_prop); NEXT_PASS (pass_rename_ssa_copies); NEXT_PASS (pass_dce); /* Fold remaining builtins. */ - NEXT_PASS (pass_object_sizes); NEXT_PASS (pass_fold_builtins); /* ??? We do want some kind of loop invariant motion, but we possibly need to adjust LIM to be more friendly towards preserving accurate |