tcg/optimize: Adjust TempOptInfo allocation
commit8f17a975e60b773d7c366a81c0d9bbe304f30859
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 31 Mar 2020 02:52:02 +0000 (30 19:52 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 13 Jan 2021 18:39:08 +0000 (13 08:39 -1000)
tree30e2495e18957d3adc9c9099f0c54261ac9902ac
parent4c868ce6454872d395b29de8d82387b2ad14aeeb
tcg/optimize: Adjust TempOptInfo allocation

Do not allocate a large block for indexing.  Instead, allocate
for each temporary as they are seen.

In general, this will use less memory, if we consider that most
TBs do not touch every target register.  This also allows us to
allocate TempOptInfo for new temps created during optimization.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/optimize.c