summaryrefslogtreecommitdiff
path: root/gcc/params.def
diff options
context:
space:
mode:
authormeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>2011-07-05 17:45:38 +0000
committermeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>2011-07-05 17:45:38 +0000
commit7e0c8808c5db75b74b90605776ba2b8bfc098483 (patch)
tree095ec451919656cb15be5b1220e74f1a6d565dc4 /gcc/params.def
parent58fdaa6da29a1d21502de2fd1d58b824d4a0d592 (diff)
downloadgcc-7e0c8808c5db75b74b90605776ba2b8bfc098483.tar.gz
Add --param case-values-threshold
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175878 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/params.def')
-rw-r--r--gcc/params.def10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/params.def b/gcc/params.def
index d827121f86c..78601f6de88 100644
--- a/gcc/params.def
+++ b/gcc/params.def
@@ -892,6 +892,16 @@ DEFPARAM (PARAM_MAX_STORES_TO_SINK,
"Maximum number of conditional store pairs that can be sunk",
2, 0, 0)
+/* Override CASE_VALUES_THRESHOLD of when to switch from doing switch
+ statements via if statements to using a table jump operation. If the value
+ is 0, the default CASE_VALUES_THRESHOLD will be used. */
+DEFPARAM (PARAM_CASE_VALUES_THRESHOLD,
+ "case-values-threshold",
+ "The smallest number of different values for which it is best to "
+ "use a jump-table instead of a tree of conditional branches, "
+ "if 0, use the default for the machine",
+ 0, 0, 0)
+
/*
Local variables: