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

wip: interprocedural alias analysis #93

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

aviatesk
Copy link
Owner

@aviatesk aviatesk commented Feb 8, 2022

This should improve the accuracy of our IPO analysis very much, at the cost of introducing new level of complexities.

@@ -540,25 +540,139 @@ isaliased(x::Union{Argument,SSAValue}, y::Union{Argument,SSAValue}, estate::Esca
isaliased(xidx::Int, yidx::Int, estate::EscapeState) =
in_same_set(estate.aliasset, xidx, yidx)

struct ArgEscapeInfo
EscapeBits::UInt8
struct InterEscapeInfo
Copy link
Collaborator

@ianatol ianatol Feb 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It feels like there should be a way for us to re-use code from EscapeInfo (and similarly for InterIndexableFields and friends) here, but maybe not possible with how subtyping is currently supported, and ultimately not super important

@aviatesk aviatesk force-pushed the avi/interalias branch 4 times, most recently from 2ed12c5 to ba7fde0 Compare February 9, 2022 13:29
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

Successfully merging this pull request may close these issues.

2 participants