From 8532fc26f7686df8053b8aae9cb54fe6e2b6adbb Mon Sep 17 00:00:00 2001 From: Dimi Racordon Date: Sat, 30 Sep 2023 06:06:07 +0200 Subject: [PATCH] Fix live-range computation --- Sources/IR/Analysis/Lifetime.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/IR/Analysis/Lifetime.swift b/Sources/IR/Analysis/Lifetime.swift index 6844c92c8..1b5602779 100644 --- a/Sources/IR/Analysis/Lifetime.swift +++ b/Sources/IR/Analysis/Lifetime.swift @@ -193,7 +193,7 @@ extension Module { case (.closed(let lhs), .liveIn(let rhs)): return .liveIn(lastUse: last(lhs, rhs)) case (.closed(let lhs), .closed(let rhs)): - return .liveIn(lastUse: last(lhs, rhs)) + return .closed(lastUse: last(lhs, rhs)) } } return .init(operand: left.operand, coverage: coverage)