Message ID | AANLkTik4NZtY7sde62cax3kslmQCnuPhmokoKGTJZLVE@mail.gmail.com |
---|---|
State | New |
Headers | show |
Index: postreload.c =================================================================== --- postreload.c (revision 162085) +++ postreload.c (working copy) @@ -1281,7 +1281,7 @@ move2add_use_add3_insn (rtx reg, rtx sym rtx src = SET_SRC (pat); int regno = REGNO (reg); int min_cost = INT_MAX; - int min_regno; + int min_regno = -1; bool speed = optimize_bb_for_speed_p (BLOCK_FOR_INSN (insn)); int i; @@ -1317,7 +1317,7 @@ move2add_use_add3_insn (rtx reg, rtx sym } } - if (min_cost < rtx_cost (src, SET, speed)) + if (min_regno >= 0 && min_cost < rtx_cost (src, SET, speed)) { rtx tem;