Commit b34878a3 by Jan Hubicka Committed by Jan Hubicka

* jump.c (comparison_dominates_p): Support unordered compares.

From-SVN: r38776
parent 1f36a2dd
Sun Jan 7 14:44:19 MET 2001 Jan Hubicka <jh@suse.cz>
* jump.c (comparison_dominates_p): Support unordered compares.
Sun Jan 7 14:39:07 MET 2001 Jan Hubicka <jh@suse.cz> Sun Jan 7 14:39:07 MET 2001 Jan Hubicka <jh@suse.cz>
* simplify-rtx.c (simplify_relational_operation): Always simplify * simplify-rtx.c (simplify_relational_operation): Always simplify
......
...@@ -2004,19 +2004,34 @@ comparison_dominates_p (code1, code2) ...@@ -2004,19 +2004,34 @@ comparison_dominates_p (code1, code2)
switch (code1) switch (code1)
{ {
case UNEQ:
if (code2 == UNLE || code2 == UNGE)
return 1;
break;
case EQ: case EQ:
if (code2 == LE || code2 == LEU || code2 == GE || code2 == GEU if (code2 == LE || code2 == LEU || code2 == GE || code2 == GEU
|| code2 == ORDERED) || code2 == ORDERED)
return 1; return 1;
break; break;
case UNLT:
if (code2 == UNLE || code2 == NE)
return 1;
break;
case LT: case LT:
if (code2 == LE || code2 == NE || code2 == ORDERED) if (code2 == LE || code2 == NE || code2 == ORDERED || code2 == LTGT)
return 1;
break;
case UNGT:
if (code2 == UNGE || code2 == NE)
return 1; return 1;
break; break;
case GT: case GT:
if (code2 == GE || code2 == NE || code2 == ORDERED) if (code2 == GE || code2 == NE || code2 == ORDERED || code2 == LTGT)
return 1; return 1;
break; break;
...@@ -2042,7 +2057,8 @@ comparison_dominates_p (code1, code2) ...@@ -2042,7 +2057,8 @@ comparison_dominates_p (code1, code2)
break; break;
case UNORDERED: case UNORDERED:
if (code2 == NE) if (code2 == NE || code2 == UNEQ || code2 == UNLE || code2 == UNLT
|| code2 == UNGE || code2 == UNGT)
return 1; return 1;
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment