https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109009

--- Comment #10 from Peter Bergner <bergner at gcc dot gnu.org> ---
(In reply to Peter Bergner from comment #9)
> Yes, you'll need to factor in the BB frequency.  Since the save/restore code
> will go into (at this point modulo shrink-wrapping later) the prologue and
> epilogue, you'll want something like: <prologue/epilogue freq> * 2 *
> "ira_memory_move_cost".

Thinking more, depending on the allocno/mode, you might also need to factor in
calculate_saved_nregs(), in case the allocno represents a register pair or
larger.

Reply via email to