diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-25 02:23:57 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-25 02:23:57 +0000 |
commit | 27e1789b96851c0b936564b990ba28752dbc7e4a (patch) | |
tree | 346d0fa09cb3984cd375397dedd3f08f8e59a524 | |
parent | 683c8e7c03d4edd82821d843612bfc0d72ee82ca (diff) | |
download | gcc-27e1789b96851c0b936564b990ba28752dbc7e4a.tar.gz |
* emit-rtl.c (reverse_comparison): Remove.
* rtl.h: Remove the corresponding prototype.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97032 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/emit-rtl.c | 32 | ||||
-rw-r--r-- | gcc/rtl.h | 1 |
3 files changed, 5 insertions, 33 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5f7c58637ef..8fc5365f9bc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-03-24 Kazu Hirata <kazu@cs.umass.edu> + + * emit-rtl.c (reverse_comparison): Remove. + * rtl.h: Remove the corresponding prototype. + 2005-03-24 James E Wilson <wilson@specifixinc.com> * doc/install.texi (--enable-altivec): Delete docs. diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 137f0b7d383..8d5cf3ca2b3 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -1360,38 +1360,6 @@ operand_subword_force (rtx op, unsigned int offset, enum machine_mode mode) return result; } -/* Given a compare instruction, swap the operands. - A test instruction is changed into a compare of 0 against the operand. */ - -void -reverse_comparison (rtx insn) -{ - rtx body = PATTERN (insn); - rtx comp; - - if (GET_CODE (body) == SET) - comp = SET_SRC (body); - else - comp = SET_SRC (XVECEXP (body, 0, 0)); - - if (GET_CODE (comp) == COMPARE) - { - rtx op0 = XEXP (comp, 0); - rtx op1 = XEXP (comp, 1); - XEXP (comp, 0) = op1; - XEXP (comp, 1) = op0; - } - else - { - rtx new = gen_rtx_COMPARE (VOIDmode, - CONST0_RTX (GET_MODE (comp)), comp); - if (GET_CODE (body) == SET) - SET_SRC (body) = new; - else - SET_SRC (XVECEXP (body, 0, 0)) = new; - } -} - /* Within a MEM_EXPR, we care about either (1) a component ref of a decl, or (2) a component ref of something variable. Represent the later with a NULL expression. */ diff --git a/gcc/rtl.h b/gcc/rtl.h index 0d507ccba77..ae31db49be7 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -1942,7 +1942,6 @@ extern void init_emit (void); extern void init_emit_once (int); extern void push_topmost_sequence (void); extern void pop_topmost_sequence (void); -extern void reverse_comparison (rtx); extern void set_new_first_and_last_insn (rtx, rtx); extern void unshare_all_rtl (void); extern void unshare_all_rtl_again (rtx); |