aboutsummaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorMichael Meissner <meissner@cygnus.com>1998-04-27 06:05:55 +0000
committerMichael Meissner <meissner@gcc.gnu.org>1998-04-27 06:05:55 +0000
commit14bf4a33ecf517434a0fb0c09f99b0f9589a0143 (patch)
treec1efc0b7c5cb03c3e212ef650a53d511aa84eec4 /gcc/toplev.c
parent5d02ee6677b34d1ea94eb2a40993f3d61fc41b6e (diff)
downloadgcc-14bf4a33ecf517434a0fb0c09f99b0f9589a0143.zip
gcc-14bf4a33ecf517434a0fb0c09f99b0f9589a0143.tar.gz
gcc-14bf4a33ecf517434a0fb0c09f99b0f9589a0143.tar.bz2
Make args to jump_optimize symbolic
From-SVN: r19421
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c22
1 files changed, 16 insertions, 6 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index a4674c6..5494db3 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -3074,7 +3074,8 @@ rest_of_compilation (decl)
int saved_optimize = optimize;
optimize = 0;
find_exception_handler_labels ();
- jump_optimize (get_insns(), 0, 0, 0);
+ jump_optimize (get_insns(), !JUMP_CROSS_JUMP, !JUMP_NOOP_MOVES,
+ !JUMP_AFTER_REGSCAN);
optimize = saved_optimize;
}
@@ -3208,7 +3209,8 @@ rest_of_compilation (decl)
are initialized and to compute whether control can drop off the end
of the function. */
TIMEVAR (jump_time, reg_scan (insns, max_reg_num (), 0));
- TIMEVAR (jump_time, jump_optimize (insns, 0, 0, 1));
+ TIMEVAR (jump_time, jump_optimize (insns, !JUMP_CROSS_JUMP, !JUMP_NOOP_MOVES,
+ JUMP_AFTER_REGSCAN));
/* Now is when we stop if -fsyntax-only and -Wreturn-type. */
if (rtl_dump_and_exit || flag_syntax_only || DECL_DEFER_OUTPUT (decl))
@@ -3240,7 +3242,9 @@ rest_of_compilation (decl)
TIMEVAR (cse_time, delete_trivially_dead_insns (insns, max_reg_num ()));
if (tem || optimize > 1)
- TIMEVAR (jump_time, jump_optimize (insns, 0, 0, 0));
+ TIMEVAR (jump_time, jump_optimize (insns, !JUMP_CROSS_JUMP,
+ !JUMP_NOOP_MOVES,
+ !JUMP_AFTER_REGSCAN));
/* Dump rtl code after cse, if we are doing that. */
@@ -3303,13 +3307,17 @@ rest_of_compilation (decl)
max_reg_num so we must rerun reg_scan afterwards.
??? Rework to not call reg_scan so often. */
TIMEVAR (jump_time, reg_scan (insns, max_reg_num (), 0));
- TIMEVAR (jump_time, jump_optimize (insns, 0, 0, 1));
+ TIMEVAR (jump_time, jump_optimize (insns, !JUMP_CROSS_JUMP,
+ !JUMP_NOOP_MOVES,
+ JUMP_AFTER_REGSCAN));
TIMEVAR (cse2_time, reg_scan (insns, max_reg_num (), 0));
TIMEVAR (cse2_time, tem = cse_main (insns, max_reg_num (),
1, rtl_dump_file));
if (tem)
- TIMEVAR (jump_time, jump_optimize (insns, 0, 0, 0));
+ TIMEVAR (jump_time, jump_optimize (insns, !JUMP_CROSS_JUMP,
+ !JUMP_NOOP_MOVES,
+ !JUMP_AFTER_REGSCAN));
}
if (flag_thread_jumps)
@@ -3530,7 +3538,9 @@ rest_of_compilation (decl)
if (optimize > 0)
{
- TIMEVAR (jump_time, jump_optimize (insns, 1, 1, 0));
+ TIMEVAR (jump_time, jump_optimize (insns, JUMP_CROSS_JUMP,
+ JUMP_NOOP_MOVES,
+ !JUMP_AFTER_REGSCAN));
/* Dump rtl code after jump, if we are doing that. */