From db6556348d92709dfaa930251b5aa0fd5cb740c3 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Fri, 11 Oct 2002 22:26:50 +0200 Subject: re PR c/7344 (performance regression on huge case statements) * calls.c (expand_call): Simplify noreturn call. PR c/7344 * cfgbuild.c (make_edges): Create edge cache when we do have large jumptable. (do_tablejump): Note size of maximal jumptable. * function.c (prepare_function_start): Zero out size. * function.h (function): Add max_jumptable_ents. * cfgcleanup.c (insn_match_p): Verify sibcall flag for calls to. From-SVN: r58063 --- gcc/function.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/function.c') diff --git a/gcc/function.c b/gcc/function.c index d39fca3..479ecef 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -6295,6 +6295,8 @@ prepare_function_start () cfun->function_frequency = FUNCTION_FREQUENCY_NORMAL; + cfun->max_jumptable_ents = 0; + (*lang_hooks.function.init) (cfun); if (init_machine_status) cfun->machine = (*init_machine_status) (); -- cgit v1.1