From 1b88d998c81621fbf44144f523096f073ab68707 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 27 Jun 2023 15:48:35 +0300 Subject: [PATCH] Fixed inactive interval splitting --- ir_ra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ir_ra.c b/ir_ra.c index e2d6001..2ebf8c9 100644 --- a/ir_ra.c +++ b/ir_ra.c @@ -3106,12 +3106,12 @@ spill_current: IR_ASSERT(other->type != IR_VOID); IR_LOG_LSRA_CONFLICT(" ---- Conflict with inactive", other, overlap); // TODO: optimal split position (this case is not tested) + child = ir_split_interval_at(ctx, other, overlap); if (prev) { prev->list_next = other = other->list_next; } else { *inactive = other = other->list_next; } - child = ir_split_interval_at(ctx, other, overlap); ir_add_to_unhandled(unhandled, child); IR_LOG_LSRA(" ---- Queue", child, ""); continue;