Skip to content

Commit

Permalink
Fix live-range computation
Browse files Browse the repository at this point in the history
  • Loading branch information
kyouko-taiga committed Oct 3, 2023
1 parent b327b8b commit 8532fc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/IR/Analysis/Lifetime.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8532fc2

Please sign in to comment.