Commit 124d535f by Jim Wilson Committed by Jim Wilson

Fix ia64 abort while compiling gcc.c-torture/unsorted/logic.c.

	* regmove.c (optimize_reg_copy_1): If no REG_DEAD note, check for
	and handle REG_UNUSED note on insn.

From-SVN: r30813
parent 402b6c2a
Mon Dec 6 15:12:14 1999 Jim Wilson <wilson@cygnus.com> Mon Dec 6 15:12:14 1999 Jim Wilson <wilson@cygnus.com>
* regmove.c (optimize_reg_copy_1): If no REG_DEAD note, check for
and handle REG_UNUSED note on insn.
* combine.c (force_to_mode, case LSHIFTRT): New local inner_mask. Set * combine.c (force_to_mode, case LSHIFTRT): New local inner_mask. Set
inner_mask instead of mask. inner_mask instead of mask.
......
...@@ -528,6 +528,14 @@ optimize_reg_copy_1 (insn, dest, src) ...@@ -528,6 +528,14 @@ optimize_reg_copy_1 (insn, dest, src)
REG_NOTES (insn) = note; REG_NOTES (insn) = note;
} }
/* DEST is also dead if INSN has a REG_UNUSED note for DEST. */
if (! dest_death
&& (dest_death = find_regno_note (insn, REG_UNUSED, dregno)))
{
PUT_REG_NOTE_KIND (dest_death, REG_DEAD);
remove_note (insn, dest_death);
}
/* Put death note of DEST on P if we saw it die. */ /* Put death note of DEST on P if we saw it die. */
if (dest_death) if (dest_death)
{ {
......
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