On 2022-01-06 09:46, Richard Sandiford wrote:
The final index into (ira_)memory_move_cost is 1 for loads and
0 for stores. Thus the combination:
entry_freq * memory_cost[1] + exit_freq * memory_cost[0]
is the cost of loading a register on entry to a loop and
storing it back on exit from t
Jan Hubicka writes:
>> The final index into (ira_)memory_move_cost is 1 for loads and
>> 0 for stores. Thus the combination:
>>
>> entry_freq * memory_cost[1] + exit_freq * memory_cost[0]
>>
>> is the cost of loading a register on entry to a loop and
>> storing it back on exit from the loop.
> The final index into (ira_)memory_move_cost is 1 for loads and
> 0 for stores. Thus the combination:
>
> entry_freq * memory_cost[1] + exit_freq * memory_cost[0]
>
> is the cost of loading a register on entry to a loop and
> storing it back on exit from the loop. This is the cost to
> use i