aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2000-02-28 12:06:00 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2000-02-28 07:06:00 -0500
commit977262161033dd38b910cb42af1f19a9ce7e4d92 (patch)
tree8ff329e906dd1768e6f8b6ca73f6a6afac031dff /gcc
parente4884e958bc9378730950526524f982065e43970 (diff)
downloadgcc-977262161033dd38b910cb42af1f19a9ce7e4d92.zip
gcc-977262161033dd38b910cb42af1f19a9ce7e4d92.tar.gz
gcc-977262161033dd38b910cb42af1f19a9ce7e4d92.tar.bz2
toplev.c (rest_of_compilation): Account for time in optimize_mode_switching.
* toplev.c (rest_of_compilation): Account for time in optimize_mode_switching. From-SVN: r32232
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/toplev.c12
2 files changed, 9 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 21e2c0b..05055fb 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,8 @@
Mon Feb 28 07:03:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
+ * toplev.c (rest_of_compilation): Account for time in
+ optimize_mode_switching.
+
* jump.c (jump_optimize_1): Don't call delete_barrier_successors
if only marking labels.
diff --git a/gcc/toplev.c b/gcc/toplev.c
index c8319f8..bb325df 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -3315,8 +3315,8 @@ rest_of_compilation (decl)
TIMEVAR (combine_time,
{
- rebuild_jump_labels_after_combine =
- combine_instructions (insns, max_reg_num ());
+ rebuild_jump_labels_after_combine
+ = combine_instructions (insns, max_reg_num ());
});
/* Combining insns may have turned an indirect jump into a
@@ -3361,15 +3361,15 @@ rest_of_compilation (decl)
ggc_collect ();
}
- /* Print function header into sched dump now
- because doing the sched analysis makes some of the dump. */
-
if (optimize && n_basic_blocks)
{
- optimize_mode_switching (NULL_PTR);
+ TIMEVAR (gcse_time, optimize_mode_switching (NULL_PTR));
}
#ifdef INSN_SCHEDULING
+
+ /* Print function header into sched dump now
+ because doing the sched analysis makes some of the dump. */
if (optimize > 0 && flag_schedule_insns)
{
if (sched_dump)