From: krebbel Date: Mon, 19 Oct 2009 15:41:52 +0000 (+0000) Subject: 2009-10-19 Andreas Krebbel X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=commitdiff_plain;h=bc1c8bc5e167b8e19a85454b48e9414c9009e1ae;hp=65839a7a6d415e74f38f60f70a573d11dae6437b 2009-10-19 Andreas Krebbel * config/s390/s390.c (s390_z10_optimize_cmp): Use next/prev_active_insn to skip DEBUG_INSNs as well. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152978 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 19b0169c625..87ccb792d56 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-10-19 Andreas Krebbel + + * config/s390/s390.c (s390_z10_optimize_cmp): Use + next/prev_active_insn to skip DEBUG_INSNs as well. + 2009-10-19 Joseph Myers * config/arm/arm.c (output_move_neon): Use DImode in call to diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c index f9f2662e55a..c13170d25ca 100644 --- a/gcc/config/s390/s390.c +++ b/gcc/config/s390/s390.c @@ -9866,7 +9866,7 @@ s390_z10_optimize_cmp (rtx insn) /* Swap the COMPARE arguments and its mask if there is a 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) && reg_referenced_p (*op1, PATTERN (prev_insn))) s390_swap_cmp (cond, op0, op1, insn); @@ -9877,7 +9877,7 @@ s390_z10_optimize_cmp (rtx insn) the operands, or if swapping them would cause a conflict with the previous insn, issue a NOP after the COMPARE in 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) && s390_non_addr_reg_read_p (*op1, next_insn)) {