Commit ad334b51 by Jan Hubicka Committed by Jan Hubicka

combine.c (cant_combine_insn_p): Get around SUBREGs when determining hardreg<->reg moves.

	* combine.c (cant_combine_insn_p): Get around SUBREGs when determining
	hardreg<->reg moves.

From-SVN: r38285
parent 29360e56
Fri Dec 15 15:32:16 MET 2000 Jan Hubicka <jh@suse.cz>
* combine.c (cant_combine_insn_p): Get around SUBREGs when determining
hardreg<->reg moves.
Fri Dec 15 14:48:37 MET 2000 Jan Hubicka <jh@suse.cz> Fri Dec 15 14:48:37 MET 2000 Jan Hubicka <jh@suse.cz>
* genrecog.c (add_to_sequence): Remove special case for * genrecog.c (add_to_sequence): Remove special case for
......
...@@ -1465,6 +1465,10 @@ cant_combine_insn_p (insn) ...@@ -1465,6 +1465,10 @@ cant_combine_insn_p (insn)
return 0; return 0;
src = SET_SRC (set); src = SET_SRC (set);
dest = SET_DEST (set); dest = SET_DEST (set);
if (GET_CODE (src) == SUBREG)
src = SUBREG_REG (src);
if (GET_CODE (dest) == SUBREG)
dest = SUBREG_REG (dest);
if (REG_P (src) && REG_P (dest) if (REG_P (src) && REG_P (dest)
&& ((REGNO (src) < FIRST_PSEUDO_REGISTER && ((REGNO (src) < FIRST_PSEUDO_REGISTER
&& ! fixed_regs[REGNO (src)]) && ! fixed_regs[REGNO (src)])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment