i386.md (setcc + movzbl peephole2): Use reg_set_p.
authorJakub Jelinek <jakub@redhat.com>
Thu, 16 Jun 2016 09:27:41 +0000 (11:27 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 16 Jun 2016 09:27:41 +0000 (11:27 +0200)
* config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
(setcc + and peephole2): Likewise.

From-SVN: r237504

gcc/ChangeLog
gcc/config/i386/i386.md

index 0ffb38c3a1dd0325d7561d7006bfcdd9608b1c92..9a4ab0a221529908c26f552ad3e6bda2975b96d6 100644 (file)
@@ -1,5 +1,8 @@
 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
 
+       * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
+       (setcc + and peephole2): Likewise.
+
        PR rtl-optimization/71532
        * cse.c (cse_insn): For const/pure calls, invalidate argument passing
        memory slots.
index 16ec9cc8ca3c8649a260f8a34e0ea0a7bfeb66e4..85dda3f77c08dc5b11a522588a842a47e1d45e97 100644 (file)
   "(peep2_reg_dead_p (3, operands[1])
     || operands_match_p (operands[1], operands[3]))
    && ! reg_overlap_mentioned_p (operands[3], operands[0])
-   && ! (GET_CODE (operands[4]) == CLOBBER
-        && reg_mentioned_p (operands[3], operands[4]))"
+   && ! reg_set_p (operands[3], operands[4])"
   [(parallel [(set (match_dup 5) (match_dup 0))
              (match_dup 4)])
    (set (strict_low_part (match_dup 6))
   "(peep2_reg_dead_p (3, operands[1])
     || operands_match_p (operands[1], operands[3]))
    && ! reg_overlap_mentioned_p (operands[3], operands[0])
-   && ! (GET_CODE (operands[4]) == CLOBBER
-        && reg_mentioned_p (operands[3], operands[4]))"
+   && ! reg_set_p (operands[3], operands[4])"
   [(parallel [(set (match_dup 5) (match_dup 0))
              (match_dup 4)])
    (set (strict_low_part (match_dup 6))