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 use recursion in IncrementalCompact #30885

Merged
merged 2 commits into from
Feb 13, 2019
Merged

Don't use recursion in IncrementalCompact #30885

merged 2 commits into from
Feb 13, 2019

Conversation

Keno
Copy link
Member

@Keno Keno commented Jan 29, 2019

This dodges a stack overflow seen with extremely large blocks of code.

This commit was lying around on kf/tpu3, but it's generally applicable to avoid stack overflows when simplifying large bits of code. That doesn't tend to happen as often on master (because the ir tends to be smaller, because master does less inlining), but it is a possibility, so we might as well take the fix.

…ct, ...)`

This dodges a stack overflow seen with extremely large blocks of code
base/compiler/ssair/ir.jl Outdated Show resolved Hide resolved
base/compiler/ssair/ir.jl Outdated Show resolved Hide resolved
@Keno Keno merged commit 4562045 into master Feb 13, 2019
@ararslan ararslan deleted the kf/sf/compiler_stack branch February 13, 2019 21:54
@StefanKarpinski
Copy link
Member

If only we had TCO :trollface:

@nalimilan
Copy link
Member

Can this be backported? It fixes #31244.

@KristofferC KristofferC added triage This should be discussed on a triage call backport 1.1 labels Mar 5, 2019
@Keno Keno removed the triage This should be discussed on a triage call label Feb 27, 2020
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.

6 participants