This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
re: [patch] Deal with larger anti-ranages in compare_range_with_value
- From: Tom Truscott <trt at unx dot sas dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: ja2morri at csclub dot uwaterloo dot ca
- Date: Wed, 27 Jul 2005 13:48:28 -0400 (EDT)
- Subject: re: [patch] Deal with larger anti-ranages in compare_range_with_value
Somewhat related to this (EQ/NE working the same way,
it looks like the ordinary-range NE test is missing
the case of [p,p] != q detected by compare_values (p,q) returning +2
Perhaps the EQ_EXPR and NE_EXPR code on approx lines 1714..1747
could be merged. Change the separate ifs into:
if (comp == EQ_EXPR || comp == NE_EXPR)
{
...
if (cmp == 0)
return comp == EQ_EXPR ? boolean_true_node : boolean_false_node;
and so on.
Tom Truscott