https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118591
--- Comment #5 from Denis Chertykov <denisc at gcc dot gnu.org> ---
The patch is simple.
diff --git a/gcc/lra-constraints.cc b/gcc/lra-constraints.cc
index 7dbc7fe1e00..6c86e4f8f6c 100644
--- a/gcc/lra-constraints.cc
+++ b/gcc/lra-constraints.cc
@@ -5883,8 +5883,8 @@ static bool
inherit_reload_reg (bool def_p, int original_regno,
enum reg_class cl, rtx_insn *insn, rtx next_usage_insns)
{
- if (optimize_function_for_size_p (cfun))
- return false;
+ // if (optimize_function_for_size_p (cfun))
+ // return false;
enum reg_class rclass = lra_get_allocno_class (original_regno);
rtx original_reg = regno_reg_rtx[original_regno];