Commit 33ab2bd4 by Andreas Krebbel Committed by Andreas Krebbel

s390.c (s390_z10_optimize_cmp): Use next/prev_active_insn to skip DEBUG_INSNs as well.

2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* config/s390/s390.c (s390_z10_optimize_cmp): Use
	next/prev_active_insn to skip DEBUG_INSNs as well.

From-SVN: r152978
parent 5728868b
2009-10-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/s390/s390.c (s390_z10_optimize_cmp): Use
next/prev_active_insn to skip DEBUG_INSNs as well.
2009-10-19 Joseph Myers <joseph@codesourcery.com> 2009-10-19 Joseph Myers <joseph@codesourcery.com>
* config/arm/arm.c (output_move_neon): Use DImode in call to * config/arm/arm.c (output_move_neon): Use DImode in call to
...@@ -9866,7 +9866,7 @@ s390_z10_optimize_cmp (rtx insn) ...@@ -9866,7 +9866,7 @@ s390_z10_optimize_cmp (rtx insn)
/* Swap the COMPARE arguments and its mask if there is a /* Swap the COMPARE arguments and its mask if there is a
conflicting access in the previous insn. */ conflicting access in the previous insn. */
prev_insn = prev_nonnote_insn (insn); prev_insn = prev_active_insn (insn);
if (prev_insn != NULL_RTX && INSN_P (prev_insn) if (prev_insn != NULL_RTX && INSN_P (prev_insn)
&& reg_referenced_p (*op1, PATTERN (prev_insn))) && reg_referenced_p (*op1, PATTERN (prev_insn)))
s390_swap_cmp (cond, op0, op1, insn); s390_swap_cmp (cond, op0, op1, insn);
...@@ -9877,7 +9877,7 @@ s390_z10_optimize_cmp (rtx insn) ...@@ -9877,7 +9877,7 @@ s390_z10_optimize_cmp (rtx insn)
the operands, or if swapping them would cause a conflict the operands, or if swapping them would cause a conflict
with the previous insn, issue a NOP after the COMPARE in with the previous insn, issue a NOP after the COMPARE in
order to separate the two instuctions. */ order to separate the two instuctions. */
next_insn = next_nonnote_insn (insn); next_insn = next_active_insn (insn);
if (next_insn != NULL_RTX && INSN_P (next_insn) if (next_insn != NULL_RTX && INSN_P (next_insn)
&& s390_non_addr_reg_read_p (*op1, next_insn)) && s390_non_addr_reg_read_p (*op1, next_insn))
{ {
......
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