Fix register elimination problem

From-SVN: r40147
This commit is contained in:
Bernd Schmidt 2001-03-01 13:35:13 +00:00 committed by Bernd Schmidt
parent 21e4c9a8db
commit 1abdf5e747
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2001-03-01 Bernd Schmidt <bernds@redhat.com>
* reload1.c (eliminate_regs_in_insn): Restrict the special case
code not to try to optimize adds with anything but a REG destination.
* sched-int.h (struct haifa_insn_data): Add new member priority_known.
(INSN_PRIORITY_KNOWN): New accessor macro.
* haifa-sched.c (priority): Use it instead of testing priority against

View File

@ -3016,6 +3016,7 @@ eliminate_regs_in_insn (insn, replace)
currently support: a single set with the source being a PLUS of an
eliminable register and a constant. */
if (old_set
&& GET_CODE (SET_DEST (old_set)) == REG
&& GET_CODE (SET_SRC (old_set)) == PLUS
&& GET_CODE (XEXP (SET_SRC (old_set), 0)) == REG
&& GET_CODE (XEXP (SET_SRC (old_set), 1)) == CONST_INT