From 245206aae790cdf79cfc5672c4fbf47fa2d9c79b Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Tue, 20 Nov 2007 17:16:25 +0000 Subject: [PATCH] really do what r16812 promises [r16814] --- ir/lower/lower_hl.c | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/ir/lower/lower_hl.c b/ir/lower/lower_hl.c index 29aa1d020..7441cb409 100644 --- a/ir/lower/lower_hl.c +++ b/ir/lower/lower_hl.c @@ -581,19 +581,12 @@ static void lower_bf_access(ir_node *irn, void *env) { * Handle Bitfields by added And/Or calculations. */ void lower_highlevel_graph(ir_graph *irg) { - int i, n; + /* First step: lower bitfield access: must be run as long as Sels still exists. */ + irg_walk_graph(irg, NULL, lower_bf_access, NULL); - n = get_irp_n_irgs(); - for (i = 0; i < n; ++i) { - ir_graph *irg = get_irp_irg(i); - - /* First step: lower bitfield access: must be run as long as Sels still exists. */ - irg_walk_graph(irg, NULL, lower_bf_access, NULL); - - /* Finally: lower SymConst-Size and Sel nodes, Casts, unaligned Load/Stores. */ - irg_walk_graph(irg, NULL, lower_irnode, NULL); - set_irg_phase_low(irg); - } + /* Finally: lower SymConst-Size and Sel nodes, Casts, unaligned Load/Stores. */ + irg_walk_graph(irg, NULL, lower_irnode, NULL); + set_irg_phase_low(irg); } /* lower_highlevel */ /* -- 2.20.1