Skip to content

Commit

Permalink
Disable CFG transforms for now
Browse files Browse the repository at this point in the history
CFG transforms can currently cause issues like #29107,
but I'm still a few days away from fixing this properly. In the meantime,
disable the transform.
  • Loading branch information
Keno committed Sep 21, 2018
1 parent 8dd3326 commit cbc1922
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion base/compiler/ssair/ir.jl
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ mutable struct IncrementalCompact
active_result_bb::Int
renamed_new_nodes::Bool
allow_cfg_transforms::Bool
function IncrementalCompact(code::IRCode, allow_cfg_transforms::Bool=true)
function IncrementalCompact(code::IRCode, allow_cfg_transforms::Bool=false)
# Sort by position with attach after nodes affter regular ones
perm = my_sortperm(Int[(code.new_nodes[i].pos*2 + Int(code.new_nodes[i].attach_after)) for i in 1:length(code.new_nodes)])
new_len = length(code.stmts) + length(code.new_nodes)
Expand Down
2 changes: 1 addition & 1 deletion test/inline.jl
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,4 @@ function f_ifelse(x)
return b ? x + 1 : x
end
# 2 for now because the compiler leaves a GotoNode around
@test length(code_typed(f_ifelse, (String,))[1][1].code) <= 2
@test_broken length(code_typed(f_ifelse, (String,))[1][1].code) <= 2

0 comments on commit cbc1922

Please sign in to comment.