mirror of
https://github.com/danog/ir.git
synced 2024-12-04 18:49:09 +01:00
Fixed spill slot allocation
This commit is contained in:
parent
3de6c5126a
commit
c599cfbdf3
5
ir_ra.c
5
ir_ra.c
@ -3407,6 +3407,11 @@ static int ir_linear_scan(ir_ctx *ctx)
|
|||||||
if (unhandled && ival->end > unhandled->range.start) {
|
if (unhandled && ival->end > unhandled->range.start) {
|
||||||
ival->list_next = active;
|
ival->list_next = active;
|
||||||
active = ival;
|
active = ival;
|
||||||
|
} else {
|
||||||
|
size = ir_type_size[ival->type];
|
||||||
|
IR_ASSERT(size == 1 || size == 2 || size == 4 || size == 8);
|
||||||
|
ival->list_next = handled[size];
|
||||||
|
handled[size] = ival;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user