Eliminate SUBREGs inside MEMs.

From-SVN: r39538
This commit is contained in:
Bernd Schmidt 2001-02-08 15:09:05 +00:00 committed by Bernd Schmidt
parent 870eabc47e
commit 0433762093
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2001-02-08 Bernd Schmidt <bernds@redhat.com>
* final.c (cleanup_subreg_operands): The address of a MEM can
contain SUBREGs.
2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
* gcc.texi (Incompatibilities): Update documentation of

View File

@ -3119,7 +3119,8 @@ cleanup_subreg_operands (insn)
if (GET_CODE (recog_data.operand[i]) == SUBREG)
recog_data.operand[i] = alter_subreg (recog_data.operand[i]);
else if (GET_CODE (recog_data.operand[i]) == PLUS
|| GET_CODE (recog_data.operand[i]) == MULT)
|| GET_CODE (recog_data.operand[i]) == MULT
|| GET_CODE (recog_data.operand[i]) == MEM)
recog_data.operand[i] = walk_alter_subreg (recog_data.operand[i]);
}
@ -3128,7 +3129,8 @@ cleanup_subreg_operands (insn)
if (GET_CODE (*recog_data.dup_loc[i]) == SUBREG)
*recog_data.dup_loc[i] = alter_subreg (*recog_data.dup_loc[i]);
else if (GET_CODE (*recog_data.dup_loc[i]) == PLUS
|| GET_CODE (*recog_data.dup_loc[i]) == MULT)
|| GET_CODE (*recog_data.dup_loc[i]) == MULT
|| GET_CODE (*recog_data.dup_loc[i]) == MEM)
*recog_data.dup_loc[i] = walk_alter_subreg (*recog_data.dup_loc[i]);
}
}