From 3c0e9566e2d8d292549d239f22e95b4092452c25 Mon Sep 17 00:00:00 2001 From: Sebastian Hack Date: Mon, 24 Jan 2005 12:49:33 +0000 Subject: [PATCH] Fixed color assignment --- ir/be/bechordal.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ir/be/bechordal.c b/ir/be/bechordal.c index 40755a1cd..cb8f22a9f 100644 --- a/ir/be/bechordal.c +++ b/ir/be/bechordal.c @@ -392,14 +392,17 @@ static void block_alloc(ir_node *block, void *env_ptr) ra_node_info_t *ri = get_ra_node_info(irn); int col = NO_COLOR; + DBG((dbg, LEVEL_4, "colors in use: %b\n", colors)); + /* * Try to assign live out values colors which are not used by live * in values. */ if(is_live_out(block, irn)) { bitset_copy(tmp_colors, colors); - bitset_andnot(tmp_colors, in_colors); + bitset_or(tmp_colors, in_colors); col = bitset_next_clear(tmp_colors, 0); + DBG((dbg, LEVEL_5, "next clear in only outs %b: %d\n", tmp_colors, col)); } /* If a color is not yet assigned, do it now. */ -- 2.20.1