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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
So perhaps just do
      return mem_cost > 2 ? mem_cost - 2 : 1;
instead of the assert and returning mem_cost - 2; ?
Or keep the assert, but let the 2 new x86 target hooks just return
default_callee_save_cost and default_frame_allocation_cost on the old CPU
tunings which have very low memory costs?
Seems it is
ix86_size_cost
i386_cost
i486_cost
pentium_cost
lakemont_cost
pentiumpro_cost
geode_cost
k6_cost
pentium4_cost
that have these very low memory costs.

Reply via email to