From 8c921a4125e1bf8e53e0c21da8c015158fdceb22 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Wed, 17 Oct 2007 12:39:29 +0000 Subject: [PATCH] enable Minus(Iu) const folding [r16245] --- ir/ir/iropt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ir/ir/iropt.c b/ir/ir/iropt.c index e84ec2949..916a2ceb9 100644 --- a/ir/ir/iropt.c +++ b/ir/ir/iropt.c @@ -178,7 +178,7 @@ static tarval *computed_value_Minus(ir_node *n) { ir_node *a = get_Minus_op(n); tarval *ta = value_of(a); - if ((ta != tarval_bad) && mode_is_signed(get_irn_mode(a))) + if (ta != tarval_bad) return tarval_neg(ta); return tarval_bad; -- 2.20.1