h8300.md (several peephole2): Replace find_regno_note with peep2_reg_dead_p.
authorKazu Hirata <kazu@cs.umass.edu>
Wed, 12 Feb 2003 13:57:56 +0000 (13:57 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Wed, 12 Feb 2003 13:57:56 +0000 (13:57 +0000)
* config/h8300/h8300.md (several peephole2): Replace
find_regno_note with peep2_reg_dead_p.

From-SVN: r62763

gcc/ChangeLog
gcc/config/h8300/h8300.md

index ccd5b580700922c33bb59f7139e84faae50e82c8..52c1cd7d01ad82456cd80afa990dcb369be6f430 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * config/h8300/h8300.md (several peephole2): Replace
+       find_regno_note with peep2_reg_dead_p.
+
 2003-02-11  Richard Henderson  <rth@redhat.com>
 
        * gcse.c (lookup_set): Remove unused argument PAT.  Update
index a469704455c98dd48586ab3ab020d72b33759b8a..5c412a7bab202738d0cc0a31c5a7a32f7a13fa8b 100644 (file)
                      (label_ref (match_operand 2 "" ""))
                      (pc)))]
   "(TARGET_H8300H || TARGET_H8300S)
-   && find_regno_note (insn, REG_DEAD, REGNO (operands[0]))"
+   && peep2_reg_dead_p (1, operands[0])"
   [(set (cc0)
        (match_dup 0))
    (set (pc)
                      (label_ref (match_operand 2 "" ""))
                      (pc)))]
   "(TARGET_H8300H || TARGET_H8300S)
-   && find_regno_note (insn, REG_DEAD, REGNO (operands[0]))"
+   && peep2_reg_dead_p (1, operands[0])"
   [(set (cc0)
        (match_dup 0))
    (set (pc)
                      (label_ref (match_operand 3 "" ""))
                      (pc)))]
   "(TARGET_H8300H || TARGET_H8300S)
-   && find_regno_note (insn, REG_DEAD, REGNO (operands[0]))
+   && peep2_reg_dead_p (1, operands[0])
    && (INTVAL (operands[1]) == 1
        || INTVAL (operands[1]) == 3
        || INTVAL (operands[1]) == 7
                        [(cc0) (const_int 0)])
                      (label_ref (match_operand 2 "" ""))
                      (pc)))]
-  "find_regno_note (next_nonnote_insn (insn), REG_DEAD, REGNO (operands[0]))"
+  "peep2_reg_dead_p (2, operands[0])"
   [(set (match_dup 4)
        (and:QI (match_dup 4)
                (match_dup 5)))
                        [(cc0) (const_int 0)])
                      (label_ref (match_operand 2 "" ""))
                      (pc)))]
-  "find_regno_note (next_nonnote_insn (insn), REG_DEAD, REGNO (operands[0]))"
+  "peep2_reg_dead_p (2, operands[0])"
   [(set (match_dup 4)
        (and:QI (match_dup 4)
                (match_dup 5)))
                        [(cc0) (const_int 0)])
                      (label_ref (match_operand 2 "" ""))
                      (pc)))]
-  "find_regno_note (next_nonnote_insn (insn), REG_DEAD, REGNO (operands[0]))"
+  "peep2_reg_dead_p (2, operands[0])"
   [(set (match_dup 4)
        (and:HI (match_dup 4)
                (match_dup 5)))