Fixed possible incorrect splitting

This commit is contained in:
Dmitry Stogov 2022-04-29 18:50:57 +03:00
parent 102b367d64
commit b3c61507a4

View File

@ -1121,6 +1121,12 @@ static ir_live_interval *ir_split_interval_at(ir_ctx *ctx, int v, ir_live_interv
}
IR_ASSERT(p);
if (pos < p->start) {
/* split between ranges */
pos = p->start;
}
use_pos = ival->use_pos;
prev_use_pos = NULL;