cse.c (simplify_ternary_operation): Don't try to simplify IF_THEN_ELSE expressions (created by combine) that don't...

* cse.c (simplify_ternary_operation): Don't try to simplify
        IF_THEN_ELSE expressions (created by combine) that don't use
        relational operators.

From-SVN: r17472
This commit is contained in:
Michael Tiemann 1998-01-25 11:12:26 +00:00 committed by Jeff Law
parent f69eecfbd5
commit e82ad93d64
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Sun Jan 25 12:13:47 1998 Michael Tiemann <michael@tiemann.org>
* cse.c (simplify_ternary_operation): Don't try to simplify
IF_THEN_ELSE expressions (created by combine) that don't use
relational operators.
Fri Jan 23 22:48:24 1998 Jeffrey A Law (law@cygnus.com)
* cse.c (simplify_ternary_operation): Handle more IF_THEN_ELSE

View File

@ -4713,7 +4713,7 @@ simplify_ternary_operation (code, mode, op0_mode, op0, op1, op2)
&& rtx_equal_p (XEXP (op0, 1), op1)
&& rtx_equal_p (XEXP (op0, 0), op2))
return op2;
else if (! side_effects_p (op0))
else if (GET_RTX_CLASS (GET_CODE (op0)) == '<' && ! side_effects_p (op0))
{
rtx temp;
temp = simplify_relational_operation (GET_CODE (op0), op0_mode,