Skip to content

[CodeGen] NFC: Move isDead to MachineInstr #123531

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

Merged
merged 3 commits into from
Jan 23, 2025
Merged

Conversation

jrbyrnes
Copy link
Contributor

Provide isDead interface for access to ad-hoc isDead queries. LivePhysRegs is optional: if not provided, pessimistically check deadness of a single MI without doing the LivePhysReg walk; if provided it is assumed to be at the position of MI.

@jrbyrnes
Copy link
Contributor Author

See #117247 for a usecase

Change-Id: I90e7829a0afc535760c08417cc50db71f46d9910
@jrbyrnes jrbyrnes merged commit f2942b9 into llvm:main Jan 23, 2025
8 checks passed
@nikic
Copy link
Contributor

nikic commented Jan 23, 2025

Looks like this causes a small compile-time regression: https://llvm-compile-time-tracker.com/compare.php?from=76ed4b1cec57ad26433e4808697d6c4d042d4b22&to=f2942b90778670d9ad974d025c779fc96afa737c&stat=instructions:u

It looks like this not only moves the code, but also changes the order of the checks -- it's possible that the new order is less optimal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants