@@ -511,11 +511,11 @@ iskindtype(@nospecialize t) = (t === DataType || t === UnionAll || t === Union |
511
511
512
512
const IInf = typemax (Int) # integer infinity
513
513
const n_ifunc = reinterpret (Int32, arraylen) + 1
514
- const t_ifunc = Array {Tuple{Int, Int, Any}, 1} ( n_ifunc)
515
- const t_ifunc_cost = Array {Int, 1} ( n_ifunc)
516
- const t_ffunc_key = Array {Any, 1} ( 0 )
517
- const t_ffunc_val = Array {Tuple{Int, Int, Any}, 1} ( 0 )
518
- const t_ffunc_cost = Array {Int, 1} ( 0 )
514
+ const t_ifunc = Vector {Tuple{Int, Int, Any}} (uninitialized, n_ifunc)
515
+ const t_ifunc_cost = Vector {Int} (uninitialized, n_ifunc)
516
+ const t_ffunc_key = Vector {Any} ( )
517
+ const t_ffunc_val = Vector {Tuple{Int, Int, Any}} ( )
518
+ const t_ffunc_cost = Vector {Int} ( )
519
519
function add_tfunc (f:: IntrinsicFunction , minarg:: Int , maxarg:: Int , @nospecialize (tfunc), cost:: Int )
520
520
idx = reinterpret (Int32, f) + 1
521
521
t_ifunc[idx] = (minarg, maxarg, tfunc)
@@ -4260,7 +4260,7 @@ function linearize_args!(args::Vector{Any}, atypes::Vector{Any}, stmts::Vector{A
4260
4260
# linearize the IR by moving the arguments to SSA position
4261
4261
na = length (args)
4262
4262
@assert length (atypes) == na
4263
- newargs = Vector {Any} (na)
4263
+ newargs = Vector {Any} (uninitialized, na)
4264
4264
for i = na: - 1 : 1
4265
4265
aei = args[i]
4266
4266
ti = atypes[i]
@@ -5272,7 +5272,7 @@ function inlining_pass(e::Expr, sv::OptimizationState, stmts::Vector{Any}, ins,
5272
5272
end
5273
5273
5274
5274
for ninline = 1 : 100
5275
- ata = Vector {Any} (length (e. args))
5275
+ ata = Vector {Any} (uninitialized, length (e. args))
5276
5276
ata[1 ] = ft
5277
5277
for i = 2 : length (e. args)
5278
5278
a = exprtype (e. args[i], sv. src, sv. mod)
@@ -5301,7 +5301,7 @@ function inlining_pass(e::Expr, sv::OptimizationState, stmts::Vector{Any}, ins,
5301
5301
5302
5302
if f === _apply
5303
5303
na = length (e. args)
5304
- newargs = Vector {Any} (na- 2 )
5304
+ newargs = Vector {Any} (uninitialized, na- 2 )
5305
5305
newstmts = Any[]
5306
5306
effect_free_upto = 0
5307
5307
for i = 3 : na
@@ -6025,10 +6025,10 @@ function alloc_elim_pass!(sv::OptimizationState)
6025
6025
end
6026
6026
end
6027
6027
else
6028
- vals = Vector {Any} (nv)
6028
+ vals = Vector {Any} (uninitialized, nv)
6029
6029
local new_slots:: Vector{Int}
6030
6030
if ! is_ssa
6031
- new_slots = Vector {Int} (nv)
6031
+ new_slots = Vector {Int} (uninitialized, nv)
6032
6032
end
6033
6033
for j= 1 : nv
6034
6034
tupelt = tup[j+ 1 ]
0 commit comments