-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37884 from JuliaLang/vc/dynamic_snca
Implement dynamic SNCA domtree algorithm
- Loading branch information
Showing
8 changed files
with
683 additions
and
281 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# This file is a part of Julia. License is MIT: https://julialang.org/license | ||
|
||
""" | ||
Like UnitRange{Int}, but can handle the `last` field, being temporarily | ||
< first (this can happen during compacting) | ||
""" | ||
struct StmtRange <: AbstractUnitRange{Int} | ||
start::Int | ||
stop::Int | ||
end | ||
|
||
first(r::StmtRange) = r.start | ||
last(r::StmtRange) = r.stop | ||
iterate(r::StmtRange, state=0) = (last(r) - first(r) < state) ? nothing : (first(r) + state, state + 1) | ||
|
||
StmtRange(range::UnitRange{Int}) = StmtRange(first(range), last(range)) | ||
|
||
struct BasicBlock | ||
stmts::StmtRange | ||
preds::Vector{Int} | ||
succs::Vector{Int} | ||
end | ||
|
||
function BasicBlock(stmts::StmtRange) | ||
return BasicBlock(stmts, Int[], Int[]) | ||
end | ||
|
||
function BasicBlock(old_bb, stmts) | ||
return BasicBlock(stmts, old_bb.preds, old_bb.succs) | ||
end | ||
|
||
copy(bb::BasicBlock) = BasicBlock(bb.stmts, copy(bb.preds), copy(bb.succs)) |
Oops, something went wrong.
86bbe09
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Executing the daily benchmark build, I will reply here when finished:
@nanosoldier
runbenchmarks(ALL, isdaily = true)
86bbe09
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Executing the daily package evaluation, I will reply here when finished:
@nanosoldier
runtests(ALL, isdaily = true)
86bbe09
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your benchmark job has completed - successfully executed benchmarks. A full report can be found here. cc @christopher-dG
86bbe09
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your package evaluation job has completed - possible new issues were detected. A full report can be found here. cc @maleadt