loop-iv.c (implies_p): In the final case, test that operands 0 of the two comparisons match.

* loop-iv.c (implies_p): In the final case, test that operands 0
	of the two comparisons match.

From-SVN: r144152
This commit is contained in:
Bernd Schmidt 2009-02-13 11:35:47 +00:00 committed by Bernd Schmidt
parent 601b3e1ab1
commit b1c92d54c4
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
* loop-iv.c (implies_p): In the final case, test that operands 0
of the two comparisons match.
2009-02-13 Richard Guenther <rguenther@suse.de>
* configure.ac: Enable LFS.

View File

@ -1556,7 +1556,8 @@ implies_p (rtx a, rtx b)
&& ((GET_CODE (a) == GT && op1 == constm1_rtx)
|| INTVAL (op1) >= 0)
&& GET_CODE (b) == LTU
&& GET_CODE (opb1) == CONST_INT)
&& GET_CODE (opb1) == CONST_INT
&& rtx_equal_p (op0, opb0))
return INTVAL (opb1) < 0;
return false;