[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 17/36] tcg/optimize: Adjust TempOptInfo allocation
From: |
Alex Bennée |
Subject: |
Re: [PATCH v2 17/36] tcg/optimize: Adjust TempOptInfo allocation |
Date: |
Wed, 22 Apr 2020 19:28:21 +0100 |
User-agent: |
mu4e 1.4.1; emacs 28.0.50 |
Alex Bennée <address@hidden> writes:
> Richard Henderson <address@hidden> writes:
>
>> 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.
>>
>> Signed-off-by: Richard Henderson <address@hidden>
>
> Reviewed-by: Alex Bennée <address@hidden>
<snip>
>>
>> -static void init_arg_info(TempOptInfo *infos,
>> - TCGTempSet *temps_used, TCGArg arg)
>> +static void init_arg_info(TCGTempSet *temps_used, TCGArg arg)
>> {
>> - init_ts_info(infos, temps_used, arg_temp(arg));
>> + init_ts_info(temps_used, arg_temp(arg));
>> }
Although I've noticed this function which is only called once where as
others call init_ts_info directly. Any reason to keep it around?
--
Alex Bennée
- [PATCH v2 14/36] tcg: Use tcg_constant_{i32, vec} with tcg vec expanders, (continued)
- [PATCH v2 17/36] tcg/optimize: Adjust TempOptInfo allocation, Richard Henderson, 2020/04/21
- [PATCH v2 18/36] tcg/optimize: Use tcg_constant_internal with constant folding, Richard Henderson, 2020/04/21
- [PATCH v2 21/36] tcg: Use tcg_out_dupi_vec from temp_load, Richard Henderson, 2020/04/21
- [PATCH v2 20/36] tcg: Remove movi and dupi opcodes, Richard Henderson, 2020/04/21
- [PATCH v2 15/36] tcg: Use tcg_constant_{i32,i64} with tcg plugins, Richard Henderson, 2020/04/21
- [PATCH v2 10/36] tcg: Add temp_readonly, Richard Henderson, 2020/04/21