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

Effects: Add :nothrow_if_inbounds effect #43899

Closed
wants to merge 1 commit into from
Closed

Effects: Add :nothrow_if_inbounds effect #43899

wants to merge 1 commit into from

Conversation

Keno
Copy link
Member

@Keno Keno commented Jan 23, 2022

Review note: Against #43852 while that is still pending.

This adds a new effect :nothrow_if_inbounds that basically does what it says on the tin.
Running #43852 through its paces, I've found it highly effective, except in cases where
a function was only nothrow because of a boundscheck with unknown bounds. This PR
adds support to make use of @inbounds annotations to still let inlining remove calls
that are nothrow except for an unknown boundscheck.

base/math.jl Outdated Show resolved Hide resolved
@Keno Keno force-pushed the kf/effectsstaging branch 2 times, most recently from 081bef4 to e591ba0 Compare February 2, 2022 07:35
@Keno Keno mentioned this pull request Feb 2, 2022
3 tasks
@Keno Keno force-pushed the kf/effectsstaging branch 2 times, most recently from 3281ce4 to b30e99c Compare February 9, 2022 14:35
Base automatically changed from kf/effectsstaging to master February 9, 2022 22:24
@oscardssmith
Copy link
Member

Does this need anything other than a rebase?

This adds a new effect :nothrow_if_inbounds that basically does what it says on the tin.
Running #43852 through its paces, I've found it highly effective, except in cases where
a function was only nothrow because of a boundscheck with unknown bounds. This PR
adds support to make use of @inbounds annotations to still let inlining remove calls
that are nothrow except for an unknown boundscheck.
@Keno Keno changed the title WIP: Effects: Add :nothrow_if_inbounds effect Effects: Add :nothrow_if_inbounds effect Mar 21, 2022
@vtjnash
Copy link
Member

vtjnash commented May 10, 2023

Is this still in-progress or dead? There look like a lot of conflicting files

@Keno Keno closed this May 10, 2023
@Keno
Copy link
Member Author

Keno commented May 10, 2023

I think this is dead. We changed the way that inbounds and effects interact, so we'd have to rethink this anyway.

@giordano giordano deleted the kf/effects2 branch February 25, 2024 21:42
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.

4 participants