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

Rename AllocInstance to AllocationSite and de-duplicate by source info #9

Merged
merged 2 commits into from
Nov 15, 2023

Conversation

topolarity
Copy link
Member

@topolarity topolarity commented Oct 11, 2023

Resolves #7

Loop unrolling and similar optimizations can cause allocations to be duplicated to multiple locations in the LLVM IR despite corresponding to a single allocation in the Julia IR.

After this change check_allocs(*, (Matrix{Float64},Matrix{Float64})) reports 14 allocations instead of 20.

@topolarity topolarity requested a review from gbaraldi October 11, 2023 13:55
@topolarity topolarity changed the title Rename AllocInstance to AllocSite and de-duplicate by source info Rename AllocInstance to AllocationSite and de-duplicate by source info Oct 11, 2023
@topolarity topolarity force-pushed the ct/dedup-alloc-site branch 4 times, most recently from 958661d to 41346b5 Compare October 12, 2023 20:36
topolarity and others added 2 commits November 14, 2023 16:38
Loop unrolling and similar optimizations can cause allocations to be
duplicated to multiple locations in the LLVM IR despite corresponding to
a single allocation in the Julia IR.

After this change `check_allocs(*, (Matrix{Float64},Matrix{Float64}))`
reports 9 allocations instead of 21.
@topolarity topolarity force-pushed the ct/dedup-alloc-site branch 2 times, most recently from d324f7d to 4688a92 Compare November 15, 2023 17:24
@topolarity topolarity merged commit d2fbd23 into main Nov 15, 2023
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.

Repeated allocation instances
2 participants