diff options
author | Bernd Schmidt <bernd.schmidt@analog.com> | 2009-02-13 11:35:47 +0000 |
---|---|---|
committer | Bernd Schmidt <bernds@gcc.gnu.org> | 2009-02-13 11:35:47 +0000 |
commit | b1c92d54c4f880a15084dfdfa1779d59d9736f81 (patch) | |
tree | 76e727d26666afbcb1f0b59b6364fa215129625d /gcc/loop-iv.c | |
parent | 601b3e1ab1554c308761fd33c629f037ae87507f (diff) | |
download | gcc-b1c92d54c4f880a15084dfdfa1779d59d9736f81.zip gcc-b1c92d54c4f880a15084dfdfa1779d59d9736f81.tar.gz gcc-b1c92d54c4f880a15084dfdfa1779d59d9736f81.tar.bz2 |
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
Diffstat (limited to 'gcc/loop-iv.c')
-rw-r--r-- | gcc/loop-iv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/loop-iv.c b/gcc/loop-iv.c index 3723dbd..e8e89bc 100644 --- a/gcc/loop-iv.c +++ b/gcc/loop-iv.c @@ -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; |