Fix from 2.8/egcs to handle the case where a comparison is optimized out

during a reversal.  Fixes PR 5564.
This commit is contained in:
mycroft 1998-11-11 22:06:47 +00:00
parent 6b1ed04840
commit 1ef4e62a74

View File

@ -4018,6 +4018,10 @@ simplify_if_then_else (x)
SUBST (XEXP (x, 2), true);
temp = true, true = false, false = temp, cond = XEXP (x, 0);
/* It is possible that the conditional has been simplified out. */
true_code = GET_CODE (cond);
comparison_p = GET_RTX_CLASS (true_code) == '<';
}
/* If the two arms are identical, we don't need the comparison. */