regclass.c (scan_one_insn): Update REG_N_REFS when optimizing handling of two-address insns.

* regclass.c (scan_one_insn): Update REG_N_REFS when optimizing
handling of two-address insns.

From-SVN: r41925
This commit is contained in:
Alexandre Oliva 2001-05-09 13:40:49 +00:00 committed by Alexandre Oliva
parent d08d4a19e3
commit d3c7d45ed9
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Wed May 9 10:40:25 2001 Alexandre Oliva <aoliva@redhat.com>
* regclass.c (scan_one_insn): Update REG_N_REFS when optimizing
handling of two-address insns.
Wed May 9 10:36:18 2001 Alexandre Oliva <aoliva@redhat.com>
* Makefile.in (NM_FOR_TARGET): Look for ./nm, then

View File

@ -1058,11 +1058,16 @@ scan_one_insn (insn, pass)
/* This makes one more setting of new insns's dest. */
REG_N_SETS (REGNO (recog_data.operand[0]))++;
REG_N_REFS (REGNO (recog_data.operand[0]))++;
*recog_data.operand_loc[1] = recog_data.operand[0];
REG_N_REFS (REGNO (recog_data.operand[0]))++;
for (i = recog_data.n_dups - 1; i >= 0; i--)
if (recog_data.dup_num[i] == 1)
*recog_data.dup_loc[i] = recog_data.operand[0];
{
*recog_data.dup_loc[i] = recog_data.operand[0];
REG_N_REFS (REGNO (recog_data.operand[0]))++;
}
return PREV_INSN (newinsn);
}