Patch for speed up checking distributions of units to automata

From: Vladimir Makarov <vmakarov at redhat dot com>

To: gcc-patches at gcc dot gnu dot org

Date: Thu, 06 Feb 2003 18:12:16 -0500

Subject: Patch for speed up checking distributions of units to automata

I've gotten a DFA description (a very complicated one) in which
genautomata spends the most time in checking distribution of units to
automata. The following patch decreases this time (~ 15 min) to
acceptable level (a second).
The patch has been tested for x86, itanium, alpha, sparc, and sh
and has been committed into the main line.
Vlad
2003-02-06 Vladimir Makarov <vmakarov@redhat.com>
* genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
variables starting with underscore.
(struct unit_usage): New structure.
(unit_usages, cycle_alt_unit_usages): New global variables.
(check_unit_distribution_in_reserv): Remove it.
(store_alt_unit_usage): New function.
(check_regexp_units_distribution): Rewrite it.