kill can_reverse_comparison_p
Jan Hubicka
jh@suse.cz
Wed Feb 28 09:06:00 GMT 2001
Small, nice patch :)
Wed Feb 28 18:04:58 CET 2001 Jan Hubicka <jh@suse.cz>
* jump.c (reversed_comparison_code): Kill.
Index: jump.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/jump.c,v
retrieving revision 1.156
diff -c -3 -p -r1.156 jump.c
*** jump.c 2001/02/28 16:19:16 1.156
--- jump.c 2001/02/28 17:04:32
*************** reversed_comparison_code (comparison, in
*** 1874,1908 ****
XEXP (comparison, 1), insn);
}
- /* Given a comparison, COMPARISON, inside a conditional jump insn, INSN,
- return non-zero if it is safe to reverse this comparison. It is if our
- floating-point is not IEEE, if this is an NE or EQ comparison, or if
- this is known to be an integer comparison.
-
- Use of this function is depreached and you should use
- REVERSED_COMPARISON_CODE bits instead.
- */
-
- int
- can_reverse_comparison_p (comparison, insn)
- rtx comparison;
- rtx insn;
- {
- enum rtx_code code;
-
- /* If this is not actually a comparison, we can't reverse it. */
- if (GET_RTX_CLASS (GET_CODE (comparison)) != '<')
- return 0;
-
- code = reversed_comparison_code (comparison, insn);
- if (code == UNKNOWN)
- return 0;
-
- /* The code will follow can_reverse_comparison_p with reverse_condition,
- so see if it will get proper result. */
- return (code == reverse_condition (GET_CODE (comparison)));
- }
-
/* Given an rtx-code for a comparison, return the code for the negated
comparison. If no such code exists, return UNKNOWN.
--- 1874,1879 ----
More information about the Gcc-patches
mailing list