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

Don't attempt to const prop call cycles #31996

Merged
merged 1 commit into from
May 11, 2019
Merged

Don't attempt to const prop call cycles #31996

merged 1 commit into from
May 11, 2019

Conversation

Keno
Copy link
Member

@Keno Keno commented May 10, 2019

Even if the result is unused. Fixes #31974.

Copy link
Member

@vtjnash vtjnash left a comment

Choose a reason for hiding this comment

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

Also line 342?

@Keno
Copy link
Member Author

Keno commented May 10, 2019

Yeah, probably. I am slightly concerned about these cases preventing inlining results (or even things like inferring nothrow).

Even if the result is unused. Fixes #31974.
@vtjnash
Copy link
Member

vtjnash commented May 10, 2019

I think it's unlikely to be possible to inline these (or at least, requires an entirely different fixed point or tail-call algorithm)

@Keno
Copy link
Member Author

Keno commented May 10, 2019

Yes, for an actual call cycle agreed, but it'd be nice to infer nothrow.

@JeffBezanson
Copy link
Member

👍 Makes sense to me. Should we go even further and never constant prop unused calls?

@Keno
Copy link
Member Author

Keno commented May 11, 2019

Should we go even further and never constant prop unused calls?

Maybe in the future, but for now we do need this because we want to look it up during inlining. Additionally, we could always discover a value-dependent guaranteed Union{}.

@Keno Keno merged commit 40296fb into master May 11, 2019
@martinholters martinholters deleted the kf/31974 branch May 11, 2019 17:46
KristofferC pushed a commit that referenced this pull request May 13, 2019
Even if the result is unused. Fixes #31974.

(cherry picked from commit 40296fb)
@KristofferC KristofferC mentioned this pull request May 13, 2019
58 tasks
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.

Type inference takes forever in GenericLinearAlgebra.jl
5 participants