diff options
author | Andreas Krebbel <Andreas.Krebbel@de.ibm.com> | 2009-10-16 10:09:28 +0000 |
---|---|---|
committer | Andreas Krebbel <krebbel@gcc.gnu.org> | 2009-10-16 10:09:28 +0000 |
commit | 200ab6fd4b218b3e9f5617bcf1d36857b68e0c1e (patch) | |
tree | c0a48b12661208c717e95faf6096caea37a936db /gcc/config/s390 | |
parent | 3808dfec58ef17c44b36dda7c2bb590580f6d8fc (diff) | |
download | gcc-200ab6fd4b218b3e9f5617bcf1d36857b68e0c1e.zip gcc-200ab6fd4b218b3e9f5617bcf1d36857b68e0c1e.tar.gz gcc-200ab6fd4b218b3e9f5617bcf1d36857b68e0c1e.tar.bz2 |
s390.c (s390_z10_optimize_cmp): Skip notes when investigating previous or next insns.
2009-10-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
investigating previous or next insns.
From-SVN: r152896
Diffstat (limited to 'gcc/config/s390')
-rw-r--r-- | gcc/config/s390/s390.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c index 3be52d0..f9f2662 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_INSN (insn); + prev_insn = prev_nonnote_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_INSN (insn); + next_insn = next_nonnote_insn (insn); if (next_insn != NULL_RTX && INSN_P (next_insn) && s390_non_addr_reg_read_p (*op1, next_insn)) { |