Skip to content

Commit

Permalink
ssair: fix performance bug
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash committed Mar 11, 2020
1 parent 5c21be3 commit 62968fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base/compiler/ssair/slot2ssa.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ function scan_slot_def_use(nargs::Int, ci::CodeInfo, code::Vector{Any})
for var in result[1:(1+nargs)]
push!(var.defs, 0)
end
for (idx, stmt) in Iterators.enumerate(code)
for idx in 1:length(code)
stmt = code[idx]
scan_entry!(result, idx, stmt)
end
result
Expand Down

0 comments on commit 62968fb

Please sign in to comment.