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

Compute byte offsets of GEPs #37

Open
langston-barrett opened this issue Aug 4, 2023 · 0 comments
Open

Compute byte offsets of GEPs #37

langston-barrett opened this issue Aug 4, 2023 · 0 comments
Labels
feat New feature or request

Comments

@langston-barrett
Copy link
Collaborator

On the Irving example, 65% of GEPs have all-constant indices. On Jackson, it's 93%. With information about type sizes, these GEPs can be translated into byte-offsets. Given information about allocation sizes, we can then discard points-to facts that would involve adding offsets that go beyond the end of allocations, or even go so far as #36. This would improve both performance and precision. This would require work upstream in the llvm-ir crate to reproduce LLVM's type-size computations.

@langston-barrett langston-barrett added the feat New feature or request label Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant