aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.h
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2002-10-11 22:26:50 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2002-10-11 20:26:50 +0000
commitdb6556348d92709dfaa930251b5aa0fd5cb740c3 (patch)
treefbcbac53dc98b47f9f2b0b115a5d2f2bb473c34d /gcc/function.h
parentca91148bcd4fd17dea7dbd0407e491e0cfd5ee3d (diff)
downloadgcc-db6556348d92709dfaa930251b5aa0fd5cb740c3.zip
gcc-db6556348d92709dfaa930251b5aa0fd5cb740c3.tar.gz
gcc-db6556348d92709dfaa930251b5aa0fd5cb740c3.tar.bz2
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
Diffstat (limited to 'gcc/function.h')
-rw-r--r--gcc/function.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/function.h b/gcc/function.h
index c7a5e5e..89319eb 100644
--- a/gcc/function.h
+++ b/gcc/function.h
@@ -500,6 +500,10 @@ struct function GTY(())
(set only when profile feedback is available). */
FUNCTION_FREQUENCY_HOT
} function_frequency;
+
+ /* Maximal number of entities in the single jumptable. Used to estimate
+ final flowgraph size. */
+ int max_jumptable_ents;
};
/* The function currently being compiled. */