diff options
author | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-04-24 16:20:16 +0000 |
---|---|---|
committer | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-04-24 16:20:16 +0000 |
commit | 66d211a3decfba4e1ef1a34948c74d2f656bf01f (patch) | |
tree | 8b1614cffde14fc27bb0364e68b21853ce207c89 /gcc/loop-iv.c | |
parent | 3a343682c01eb70d6b4a65a9efe4cbb2e46c374c (diff) | |
parent | d16bd0a94979319a3a2c73e7ae51a53c4fb37f3f (diff) |
Merge in trunk.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/wide-int@209755 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop-iv.c')
-rw-r--r-- | gcc/loop-iv.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/loop-iv.c b/gcc/loop-iv.c index 906c71d84fa..796bd59f2d6 100644 --- a/gcc/loop-iv.c +++ b/gcc/loop-iv.c @@ -1732,6 +1732,21 @@ canon_condition (rtx cond) return cond; } +/* Reverses CONDition; returns NULL if we cannot. */ + +static rtx +reversed_condition (rtx cond) +{ + enum rtx_code reversed; + reversed = reversed_comparison_code (cond, NULL); + if (reversed == UNKNOWN) + return NULL_RTX; + else + return gen_rtx_fmt_ee (reversed, + GET_MODE (cond), XEXP (cond, 0), + XEXP (cond, 1)); +} + /* Tries to use the fact that COND holds to simplify EXPR. ALTERED is the set of altered regs. */ |