On 06/05/14 15:29, Richard Sandiford wrote:
lookup_constraint is also an out-of-line switch-based function. Since most constraints are still single-letter ones, it should be more efficient to have a lookup array for the single-character case and an out-of-line function for the more complicated ones. This becomes even more important with the latter half of the series (which isn't as much of a win otherwise).Richard gcc/ * genpreds.c (write_lookup_constraint): Rename to... (write_lookup_constraint_1): ...this. (write_lookup_constraint_array): New function. (write_tm_preds_h): Define lookup_constraint as an inline function that uses write_lookup_constraint_array where possible. (write_insn_preds_c): Update for the changes above.
OK. Jeff
