Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NativeAOT-LLVM] Fix up LSSA logging around liveness #3053

Open
SingleAccretion opened this issue Mar 22, 2025 · 0 comments
Open

[NativeAOT-LLVM] Fix up LSSA logging around liveness #3053

SingleAccretion opened this issue Mar 22, 2025 · 0 comments

Comments

@SingleAccretion
Copy link

The current (a bit lazy) logic is not correct as uncovered by Yowl, since it runs before PHIs are processed. Reproduction:

[MethodImpl(MethodImplOptions.NoInlining)]
private static unsafe object Problem(object x, object y)
{
    object z = x != null ? y : x;
    Use(&z);
    return z;
}

public static unsafe void Use<T>(T* arg) { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant