diff options
author | Richard Biener <rguenther@suse.de> | 2014-04-23 13:48:12 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2014-04-23 13:48:12 +0000 |
commit | da4cfeacb0a152f4cc3afa7473ccad1b8455eae2 (patch) | |
tree | 74c8ed6896fc763ca39ad07ae90e5c2c28f4727d /gcc/loop-iv.c | |
parent | 22718afe53695be38b6d9b7de6edec7c8dda734e (diff) | |
download | gcc-da4cfeacb0a152f4cc3afa7473ccad1b8455eae2.zip gcc-da4cfeacb0a152f4cc3afa7473ccad1b8455eae2.tar.gz gcc-da4cfeacb0a152f4cc3afa7473ccad1b8455eae2.tar.bz2 |
Makefile.in (OBJS): Remove loop-unswitch.o.
2014-04-23 Richard Biener <rguenther@suse.de>
* Makefile.in (OBJS): Remove loop-unswitch.o.
* loop-unswitch.c: Delete.
* tree-pass.h (make_pass_rtl_unswitch): Remove.
* passes.def (pass_rtl_unswitch): Likewise.
* loop-init.c (gate_rtl_unswitch): Likewise.
(rtl_unswitch): Likewise.
(pass_data_rtl_unswitch): Likewise.
(pass_rtl_unswitch): Likewise.
(make_pass_rtl_unswitch): Likewise.
* rtl.h (reversed_condition): Likewise.
(compare_and_jump_seq): Likewise.
* loop-iv.c (reversed_condition): Move here from loop-unswitch.c
and make static.
* loop-unroll.c (compare_and_jump_seq): Likewise.
From-SVN: r209698
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 9091220..42bcb75 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. */ |