Commit 96b2d8da by Jakub Jelinek Committed by Jakub Jelinek

i386.md (setcc + movzbl peephole2): Use reg_set_p.

	* config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
	(setcc + and peephole2): Likewise.

From-SVN: r237504
parent 67c25816
2016-06-16 Jakub Jelinek <jakub@redhat.com> 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 PR rtl-optimization/71532
* cse.c (cse_insn): For const/pure calls, invalidate argument passing * cse.c (cse_insn): For const/pure calls, invalidate argument passing
memory slots. memory slots.
......
...@@ -11849,8 +11849,7 @@ ...@@ -11849,8 +11849,7 @@
"(peep2_reg_dead_p (3, operands[1]) "(peep2_reg_dead_p (3, operands[1])
|| operands_match_p (operands[1], operands[3])) || operands_match_p (operands[1], operands[3]))
&& ! reg_overlap_mentioned_p (operands[3], operands[0]) && ! reg_overlap_mentioned_p (operands[3], operands[0])
&& ! (GET_CODE (operands[4]) == CLOBBER && ! reg_set_p (operands[3], operands[4])"
&& reg_mentioned_p (operands[3], operands[4]))"
[(parallel [(set (match_dup 5) (match_dup 0)) [(parallel [(set (match_dup 5) (match_dup 0))
(match_dup 4)]) (match_dup 4)])
(set (strict_low_part (match_dup 6)) (set (strict_low_part (match_dup 6))
...@@ -11894,8 +11893,7 @@ ...@@ -11894,8 +11893,7 @@
"(peep2_reg_dead_p (3, operands[1]) "(peep2_reg_dead_p (3, operands[1])
|| operands_match_p (operands[1], operands[3])) || operands_match_p (operands[1], operands[3]))
&& ! reg_overlap_mentioned_p (operands[3], operands[0]) && ! reg_overlap_mentioned_p (operands[3], operands[0])
&& ! (GET_CODE (operands[4]) == CLOBBER && ! reg_set_p (operands[3], operands[4])"
&& reg_mentioned_p (operands[3], operands[4]))"
[(parallel [(set (match_dup 5) (match_dup 0)) [(parallel [(set (match_dup 5) (match_dup 0))
(match_dup 4)]) (match_dup 4)])
(set (strict_low_part (match_dup 6)) (set (strict_low_part (match_dup 6))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment