aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Krebbel <Andreas.Krebbel@de.ibm.com>2009-10-19 15:41:52 +0000
committerAndreas Krebbel <krebbel@gcc.gnu.org>2009-10-19 15:41:52 +0000
commit33ab2bd440cca37f8efdd1e5f89b2c2acb6bed80 (patch)
treeebffbf5b1e300eb29ec33ad5b88c6b966437f922
parent5728868b825368b02d73a4474c23b0016850af3c (diff)
downloadgcc-33ab2bd440cca37f8efdd1e5f89b2c2acb6bed80.zip
gcc-33ab2bd440cca37f8efdd1e5f89b2c2acb6bed80.tar.gz
gcc-33ab2bd440cca37f8efdd1e5f89b2c2acb6bed80.tar.bz2
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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/s390/s390.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 19b0169..87ccb79 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c
index f9f2662..c13170d 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))
{