Skip to content

Commit

Permalink
Enable CFG transforms; turn DCE back on globally
Browse files Browse the repository at this point in the history
  • Loading branch information
yhls committed Oct 31, 2019
1 parent 4fec7ce commit c9f383d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/compiler/ssair/ir.jl
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ mutable struct IncrementalCompact
renamed_new_nodes::Bool
cfg_transforms_enabled::Bool
fold_constant_branches::Bool
function IncrementalCompact(code::IRCode, allow_cfg_transforms::Bool=false)
function IncrementalCompact(code::IRCode, allow_cfg_transforms::Bool=true)
# 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

0 comments on commit c9f383d

Please sign in to comment.