From d5a4ebdc8f085dec7700cfddda5be04c2d96d514 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Thu, 26 May 1994 18:03:39 -0400 Subject: [PATCH] (simplify_if_then_else): Don't make (mult (cond)) in simple case; leave as IF_THEN_ELSE instead. From-SVN: r7351 --- gcc/combine.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/gcc/combine.c b/gcc/combine.c index 2cd4f07d8c64..ce4f49350721 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -4032,10 +4032,7 @@ simplify_if_then_else (x) C2 = C1 * STORE_FLAG_VALUE. Similarly if OP has an outer ZERO_EXTEND or SIGN_EXTEND as long as Z is already extended (so we don't destroy it). We can do this kind of thing in some cases when STORE_FLAG_VALUE is - neither of the above, but it isn't worth checking for. - - Similarly, (if_then_else COND Z 0) can be replaced by - (mult COND (mult Z STORE_FLAG_VALUE)). */ + neither of the above, but it isn't worth checking for. */ if (comparison_p && mode != VOIDmode && ! side_effects_p (x)) { @@ -4047,11 +4044,6 @@ simplify_if_then_else (x) enum machine_mode m = mode; rtx z = 0, c1; - if (f == const0_rtx) - return gen_binary (MULT, mode, gen_binary (true_code, mode, cond_op0, - cond_op1), - gen_binary (MULT, mode, t, const_true_rtx)); - if ((GET_CODE (t) == PLUS || GET_CODE (t) == MINUS || GET_CODE (t) == IOR || GET_CODE (t) == XOR || GET_CODE (t) == ASHIFT -- 2.47.2