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

Special purpose inliner for Core.ifelse #47096

Merged
merged 1 commit into from
Oct 8, 2022
Merged

Special purpose inliner for Core.ifelse #47096

merged 1 commit into from
Oct 8, 2022

Conversation

Keno
Copy link
Member

@Keno Keno commented Oct 7, 2022

This function isn't used as much anymore now that Base.ifelse is an actual generic function, but it's still used in a few places across the ecosystem, and there currently isn't anything that would fold it for constant conditions, so add a special case inliner for it. This probably doesn't have a huge impact, but I happened to run into a case where it was causing annoying suboptimialities and it's a quick fix.

This function isn't used as much anymore now that Base.ifelse is
an actual generic function, but it's still used in a few places
across the ecosystem, and there currently isn't anything that
would fold it for constant conditions, so add a special case
inliner for it. This probably doesn't have a huge impact, but
I happened to run into a case where it was causing annoying
suboptimialities and it's a quick fix.
@aviatesk aviatesk merged commit df5b081 into master Oct 8, 2022
@aviatesk aviatesk deleted the kf/inlineifelse branch October 8, 2022 03:57
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