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

allow constant propagation to break call cycles in inference #36058

Merged
merged 1 commit into from
May 29, 2020

Conversation

JeffBezanson
Copy link
Member

This fixes the inference issue encountered by #35904. Currently we avoid constant propagation if there are cycles, but it appears to work if we just try constant prop and only use the result if it ends up breaking the cycle. It's possible something more might be needed here though.

@JeffBezanson JeffBezanson added the compiler:inference Type inference label May 28, 2020
@JeffBezanson JeffBezanson requested a review from vtjnash May 28, 2020 16:47
@JeffBezanson JeffBezanson merged commit ba6b899 into master May 29, 2020
@JeffBezanson JeffBezanson deleted the jb/constpropcycle branch May 29, 2020 22:09
simeonschaub pushed a commit to simeonschaub/julia that referenced this pull request Aug 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:inference Type inference
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants