diff options
author | Jan Hubicka <jh@suse.cz> | 2003-03-03 19:08:17 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2003-03-03 18:08:17 +0000 |
commit | f7da1e9a1e1b18af3a64419f989b6d7ed284f4fc (patch) | |
tree | 2d278a21eb40e98bc3007fcd1771f2f28eecca11 | |
parent | 0d4de51defe172a09205933c74af23b69b526dd1 (diff) | |
download | gcc-f7da1e9a1e1b18af3a64419f989b6d7ed284f4fc.zip gcc-f7da1e9a1e1b18af3a64419f989b6d7ed284f4fc.tar.gz gcc-f7da1e9a1e1b18af3a64419f989b6d7ed284f4fc.tar.bz2 |
toplev.c (rest_of_compilation): Avoid cfg_cleanup calls when not optimizing.
* toplev.c (rest_of_compilation): Avoid cfg_cleanup calls when not
optimizing.
From-SVN: r63723
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/toplev.c | 11 |
2 files changed, 12 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b051cb1..df960ee 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Mon Mar 3 19:07:21 CET 2003 Jan Hubicka <jh@suse.cz> + + * toplev.c (rest_of_compilation): Avoid cfg_cleanup calls when not + optimizing. + 2003-03-03 Kazu Hirata <kazu@cs.umass.edu> * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to diff --git a/gcc/toplev.c b/gcc/toplev.c index 215b318..339b198 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -2812,7 +2812,8 @@ rest_of_compilation (decl) } timevar_push (TV_JUMP); - cleanup_cfg (optimize ? CLEANUP_EXPENSIVE | CLEANUP_PRE_LOOP: 0); + if (optimize) + cleanup_cfg (CLEANUP_EXPENSIVE | CLEANUP_PRE_LOOP); /* Try to identify useless null pointer tests and delete them. */ if (flag_delete_null_pointer_checks) @@ -3043,8 +3044,9 @@ rest_of_compilation (decl) open_dump_file (DFI_cfg, decl); if (rtl_dump_file) dump_flow_info (rtl_dump_file); - cleanup_cfg ((optimize ? CLEANUP_EXPENSIVE : 0) - | (flag_thread_jumps ? CLEANUP_THREADING : 0)); + if (optimize) + cleanup_cfg (CLEANUP_EXPENSIVE + | (flag_thread_jumps ? CLEANUP_THREADING : 0)); /* It may make more sense to mark constant functions after dead code is eliminated by life_analysis, but we need to do it early, as -fprofile-arcs @@ -3473,7 +3475,8 @@ rest_of_compilation (decl) #endif split_all_insns (0); - cleanup_cfg (optimize ? CLEANUP_EXPENSIVE : 0); + if (optimize) + cleanup_cfg (CLEANUP_EXPENSIVE); /* On some machines, the prologue and epilogue code, or parts thereof, can be represented as RTL. Doing so lets us schedule insns between |