]> gcc.gnu.org Git - gcc.git/commitdiff
s390.c (s390_z10_optimize_cmp): Use next/prev_active_insn to skip DEBUG_INSNs as...
authorAndreas Krebbel <Andreas.Krebbel@de.ibm.com>
Mon, 19 Oct 2009 15:41:52 +0000 (15:41 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Mon, 19 Oct 2009 15:41:52 +0000 (15:41 +0000)
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

gcc/ChangeLog
gcc/config/s390/s390.c

index 19b0169c62541e39262bdfa3b82ae7122149c38e..87ccb792d568043816c9f58ce657a634c1a6e4e9 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        * config/arm/arm.c (output_move_neon): Use DImode in call to
index f9f2662e55aa17a0ee9e658dd24baf0d4fa237e0..c13170d25ca2e84c9464d06cc7c0ae9fc8ebd4cf 100644 (file)
@@ -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))
     {
This page took 0.10328 seconds and 5 git commands to generate.