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

Tweak donotdelete effects #49691

Merged
merged 1 commit into from
May 9, 2023
Merged

Tweak donotdelete effects #49691

merged 1 commit into from
May 9, 2023

Conversation

Keno
Copy link
Member

@Keno Keno commented May 9, 2023

I don't think there's any reason not to mark this intrinsic as :consistent. The only real property we need from it at the julia level is that the optimizer does not delete it, which !:effect_free will take care of.

As requested by @oscardssmith and @pepijndevos

I don't think there's any reason not to mark this intrinsic as
`:consistent`. The only real property we need from it at the julia
level is that the optimizer does not delete it, which `!:effect_free`
will take care of.
Copy link
Member

@aviatesk aviatesk left a comment

Choose a reason for hiding this comment

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

Or alternatively we can set up a dedicated effect bit for donotdelete, that forces the compiler not to perform constant-fold and DCE.

@Keno Keno merged commit 89b47cf into master May 9, 2023
@Keno Keno deleted the kf/dndeffects branch May 9, 2023 17:09
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