From f89fab3df1ddbba6aac67f430518a644a8c7ea80 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Fri, 26 Nov 2004 14:50:52 +0000 Subject: [PATCH] typo fixed [r4477] --- ir/ana/irscc.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/ir/ana/irscc.c b/ir/ana/irscc.c index 6d24951e1..add01c3c2 100644 --- a/ir/ana/irscc.c +++ b/ir/ana/irscc.c @@ -1423,27 +1423,21 @@ void find_strange_loop_nodes(ir_loop *l) { } - - - - - - /* ------------------------------------------------------------------- */ /* Simple analyses based on the loop information */ /* ------------------------------------------------------------------- */ int is_loop_variant(ir_loop *l, ir_loop *b) { - int i, n_elems = get_loop_n_elements (l); + int i, n_elems; if (l == b) return true; + n_elems = get_loop_n_elements(l); for (i = 0; i < n_elems; ++i) { loop_element e = get_loop_element(l, i); - if (is_ir_node (e.kind)) { - } else { - if (is_loop_variant(e.son), b) return true; - } + if (is_ir_loop(e.kind)) + if (is_loop_variant(e.son, b)) + return true; } return false; -- 2.20.1