From 56ac3b5ec66192404224e12bbc852687027ae76d Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Fri, 22 Oct 2004 13:50:47 +0000 Subject: [PATCH] typo fixed [r4193] --- ir/ir/iropt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ir/ir/iropt.c b/ir/ir/iropt.c index 1b68f0293..475f83f8d 100644 --- a/ir/ir/iropt.c +++ b/ir/ir/iropt.c @@ -1109,8 +1109,8 @@ optimize_preds(ir_node *n) { } /* end switch */ } -static ir_node *transform_node_Mul(ir_node *n) -{ +/** Do architecture dependend optimizations on Mul nodes */ +static ir_node *transform_node_Mul(ir_node *n) { return arch_dep_replace_mul_with_shifts(n); } @@ -1554,7 +1554,7 @@ static ir_node * transform_node_shift(ir_node *n) return n; tv2 = computed_value(get_binop_right(left)); - if (tv1 == tarval_bad) + if (tv2 == tarval_bad) return n; res = tarval_add(tv1, tv2); -- 2.20.1