https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109009
--- Comment #12 from Surya Kumari Jangala <jskumari at gcc dot gnu.org> --- (In reply to Peter Bergner from comment #10) > (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. Yes, I am taking calculate_saved_nregs() into consideration.