Skip to content

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