aboutsummaryrefslogtreecommitdiff
path: root/gcc/emit-rtl.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2005-03-25 02:23:57 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2005-03-25 02:23:57 +0000
commitcba9e10abbeccd3d3b9839ab6df5e187077c5bcb (patch)
tree346d0fa09cb3984cd375397dedd3f08f8e59a524 /gcc/emit-rtl.c
parentd3d9a67f7e1805ab7493498c4baf864c891d513f (diff)
downloadgcc-cba9e10abbeccd3d3b9839ab6df5e187077c5bcb.zip
gcc-cba9e10abbeccd3d3b9839ab6df5e187077c5bcb.tar.gz
gcc-cba9e10abbeccd3d3b9839ab6df5e187077c5bcb.tar.bz2
emit-rtl.c (reverse_comparison): Remove.
* emit-rtl.c (reverse_comparison): Remove. * rtl.h: Remove the corresponding prototype. From-SVN: r97032
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r--gcc/emit-rtl.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index 137f0b7..8d5cf3c 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. */