Re: [PATCH] Avoid repeated calls to temporarily_undo_changes [PR117297]

2024-11-19 Thread Richard Biener
On Mon, Nov 18, 2024 at 9:13 PM Richard Sandiford wrote: > > In an attempt to reduce compile time, rtl-ssa computes the cost > of existing instructions lazily rather than eagerly. However, > this means that it might need to calculate the cost of an existing > instruction while a change group is a

[PATCH] Avoid repeated calls to temporarily_undo_changes [PR117297]

2024-11-18 Thread Richard Sandiford
In an attempt to reduce compile time, rtl-ssa computes the cost of existing instructions lazily rather than eagerly. However, this means that it might need to calculate the cost of an existing instruction while a change group is already in progress for the instruction. rtl_ssa::insn_info::calcula