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

[NewOptimizer] Handle exceptions in new IR #26726

Merged
merged 10 commits into from
Apr 6, 2018
Merged

[NewOptimizer] Handle exceptions in new IR #26726

merged 10 commits into from
Apr 6, 2018

Conversation

Keno
Copy link
Member

@Keno Keno commented Apr 5, 2018

This is a branch that merges together all the WIP on the new optimizer, which includes a bunch of bugfixes as well as proper handling of exceptions. There's more work to be done, but we want to get this on master (disabled still), to have a common base on which to rebase all the other WIP and to avoid having as frequent rebase errors.

base/boot.jl Outdated
@@ -152,6 +160,7 @@ export
UndefKeywordError,
# AST representation
Expr, QuoteNode, LineNumberNode, GlobalRef, PiNode, PhiNode,
PhiCNode, UpsilonNode, LineInfoNode,
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

The new node types shouldn't be exported from Core, but from Core.IR instead.

Keno and others added 9 commits April 5, 2018 17:22
Now that the optimizer is complete, we need to start looking at latency.
The biggest problem at the moment is that we keep converting back and
forth to the legacy IR format. In order to cease doing so, we need to
move the other parts of the optimizer that still operate on the old
data structure to operate on the new ones instead. This PR does so
for inlining.

Current status: Boostraps.
```
julia> iterate(t::Tuple, i=1) = (i > length(t) ? nothing : (t[i], i+1))
julia> function any_iterate(f, y)
           st = iterate(y)
           while !(st === nothing)
               f(st[1]) && return true
               st = iterate(y, st[2])
           end
           return false
       end
julia> code_typed(any_iterate, typeof((x -> :c == x, (:a, :b))))
```
@Keno Keno merged commit 59bffa5 into master Apr 6, 2018
@stevengj stevengj deleted the kf/ssaexc branch April 7, 2018 13:58
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.

None yet

3 participants