From: Tom Wood Date: Thu, 25 Jun 1992 10:31:01 +0000 (+0000) Subject: (CASE_VALUES_THRESHOLD): Define. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cc61d0dec451a7a3bd0756a0894981be4c07d790;p=gcc.git (CASE_VALUES_THRESHOLD): Define. From-SVN: r1282 --- diff --git a/gcc/config/m88k/m88k.h b/gcc/config/m88k/m88k.h index 98499cb95f7..34873c43877 100644 --- a/gcc/config/m88k/m88k.h +++ b/gcc/config/m88k/m88k.h @@ -1404,6 +1404,15 @@ enum reg_class { NO_REGS, AP_REG, XRF_REGS, GENERAL_REGS, AGRF_REGS, actually ignored by the `case' insn proper. */ /* #define CASE_DROPS_THROUGH */ +/* Define this to be the smallest number of different values for which it + is best to use a jump-table instead of a tree of conditional branches. + The default is 4 for machines with a casesi instruction and 5 otherwise. + The best 88110 number is around 7, though the exact number isn't yet + known. A third alternative for the 88110 is to use a binary tree of + bb1 instructions on bits 2/1/0 if the range is dense. This may not + win very much though. */ +#define CASE_VALUES_THRESHOLD (TARGET_88100 ? 4 : 7) + /* Specify the tree operation to be used to convert reals to integers. */ #define IMPLICIT_FIX_EXPR FIX_ROUND_EXPR