From 0210ef67398192b4f737747dbfe046f9d138b4dc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20W=C3=BCrdig?= Date: Wed, 22 Mar 2006 16:29:58 +0000 Subject: [PATCH] clear default ignore regs in bitset limit functions --- ir/be/scripts/generate_regalloc_if.pl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ir/be/scripts/generate_regalloc_if.pl b/ir/be/scripts/generate_regalloc_if.pl index ba1499aaa..36e48e20e 100755 --- a/ir/be/scripts/generate_regalloc_if.pl +++ b/ir/be/scripts/generate_regalloc_if.pl @@ -588,6 +588,14 @@ CHECK_REQS: foreach (@regs) { } } + my @cur_class = @{ $reg_classes{"$class"} }; + for (my $idx = 0; $idx <= $#cur_class; $idx++) { + if (defined($cur_class[$idx]{"type"}) && ($cur_class[$idx]{"type"} & 4)) { + push(@temp_obst, " bitset_clear(bs, ".get_reg_index($cur_class[$idx]{"name"}).");"); + push(@temp_obst, " /* disallow ignore reg ".$cur_class[$idx]{"name"}." */\n"); + } + } + if ($has_limit == 1) { push(@obst_header_all, "void limit_reg_".$op."_".($in ? "in" : "out")."_".$idx."(void *_unused, bitset_t *bs);\n"); -- 2.20.1