rs6000.md: Require operand inequality in one of the peepholes.

* config/rs6000/rs6000.md: Require operand inequality in one
	of the peepholes.

From-SVN: r222912
This commit is contained in:
Segher Boessenkool 2015-05-08 16:34:11 +02:00 committed by Segher Boessenkool
parent 7d54bea5b9
commit 2a812183d6
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
* config/rs6000/rs6000.md: Require operand inequality in one
of the peepholes.
2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
Franz Sirl <Franz.Sirl-kernel@lauterbach.com>

View File

@ -12051,7 +12051,8 @@
(match_operand 7 "" "")
(match_operand 8 "" "")))]
"peep2_reg_dead_p (3, operands[0])
&& peep2_reg_dead_p (4, operands[4])"
&& peep2_reg_dead_p (4, operands[4])
&& REGNO (operands[0]) != REGNO (operands[5])"
[(set (match_dup 0) (xor:SI (match_dup 5) (match_dup 9)))
(set (match_dup 4) (compare:CC (match_dup 0) (match_dup 10)))
(set (pc) (if_then_else (match_dup 6) (match_dup 7) (match_dup 8)))]