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

Fix use of LoweredCodeUtils.add_control_flow! #622

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ InteractiveUtils = "1.10"
JuliaInterpreter = "0.9"
Libdl = "1.10"
Logging = "1.10"
LoweredCodeUtils = "2.2 - 2.3" # TODO update to 2.4
LoweredCodeUtils = "2.4"
MacroTools = "0.5.6"
Pkg = "1.10"
PrecompileTools = "1"
Expand Down
5 changes: 4 additions & 1 deletion src/toplevel/virtualprocess.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1186,13 +1186,16 @@ function select_dependencies!(concretize, src, edges)
end
end

domtree = LoweredCodeUtils.construct_domtree(cfg.blocks)
postdomtree = LoweredCodeUtils.construct_postdomtree(cfg.blocks)

changed = true
while changed
changed = false

# track SSA predecessors and control flows of the critical blocks
changed |= LoweredCodeUtils.add_ssa_preds!(concretize, src, edges, norequire)
changed |= LoweredCodeUtils.add_control_flow!(concretize, cfg, norequire)
changed |= LoweredCodeUtils.add_control_flow!(concretize, cfg, domtree, postdomtree)
end
end

Expand Down