diff options
Diffstat (limited to 'gcc/regmove.c')
-rw-r--r-- | gcc/regmove.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/regmove.c b/gcc/regmove.c index 4a53defed24..7de8d0d5b98 100644 --- a/gcc/regmove.c +++ b/gcc/regmove.c @@ -200,9 +200,8 @@ try_auto_increment (rtx insn, rtx inc_insn, rtx inc_insn_set, rtx reg, if (note) PUT_MODE (note, REG_UNUSED); - REG_NOTES (insn) - = gen_rtx_EXPR_LIST (REG_INC, - reg, REG_NOTES (insn)); + add_reg_note (insn, REG_INC, reg); + if (! inc_insn_set) delete_insn (inc_insn); return 1; |