From e8602131e05f5951e744046cfd98459869917fca Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Tue, 18 Sep 2007 20:51:38 +0000 Subject: [PATCH] get_Const_tarval(x) == get_mode_null(get_irn_mode(x)) -> is_Const_null(x). [r15879] --- ir/ir/iropt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ir/ir/iropt.c b/ir/ir/iropt.c index 8b5719abb..b3039cf1a 100644 --- a/ir/ir/iropt.c +++ b/ir/ir/iropt.c @@ -540,7 +540,7 @@ static tarval *computed_value_Proj_Cmp(ir_node *n) { && ( (/* ab is NULL */ is_Const(ab) && mode_is_reference(get_irn_mode(ab)) - && (get_Const_tarval(ab) == get_mode_null(get_irn_mode(ab)))) + && is_Const_null(ab)) || (/* ab is other Alloc */ is_Proj(ab) && mode_is_reference(get_irn_mode(ab)) @@ -549,7 +549,7 @@ static tarval *computed_value_Proj_Cmp(ir_node *n) { || (/* aa is NULL and aba is Alloc */ is_Const(aa) && mode_is_reference(get_irn_mode(aa)) - && (get_Const_tarval(aa) == get_mode_null(get_irn_mode(aa))) + && is_Const_null(aa) && is_Proj(ab) && mode_is_reference(get_irn_mode(ab)) && is_Alloc(aba))) -- 2.20.1