diff --git a/mach/proto/mcg/pass_registerallocator.c b/mach/proto/mcg/pass_registerallocator.c index 6f2cff26a..9068c5958 100644 --- a/mach/proto/mcg/pass_registerallocator.c +++ b/mach/proto/mcg/pass_registerallocator.c @@ -105,6 +105,61 @@ static bool allocatable(struct hreg* hreg, struct vreg* vreg) return (hreg->attrs & c->attrs); } +static struct hreg* find_input_reg(struct vreg* vreg) +{ + int i; + struct hreg* hreg = NULL; + + for (i=0; i %s\n", + c->equals_to->id, hreg->name); pmap_add(current_ins, hreg, c->equals_to); } else { /* This is an ordinary new register. */ - hreg = NULL; - for (i=0; i