On 06/05/14 15:30, Richard Sandiford wrote:
After the earlier changes, the only important function that switches on
constraint_num is constraint_satisfied_p (now constraint_satisfied_p_1).
Since constraint_num is a dense enum, it seems faster to use a jump
table instead.  In many cases this allows the handling function to be
a simple sibcall to something like a predicate.

Richard


gcc/
        * genpreds.c (write_constraint_satisfied_p_1): Replace with...
        (write_constraint_satisfied_p_array): ...this new function.
        (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
        an array.
        (write_insn_preds_c): Update accordingly.
OK.
jeff

Reply via email to