File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -73,8 +73,8 @@ benchmark_driver!(ackley, x)
73
73
function generate_matrix_test (n)
74
74
return (x, callback= nothing ) -> begin
75
75
# @assert length(x) == 2n^2 + n
76
- a = reshape (x[1 : (n ^ 2 )], n, n)
77
- b = reshape (x[(n ^ 2 + 1 ): (2 n ^ 2 )], n, n)
76
+ a = reshape (x[1 : (n^ 2 )], n, n)
77
+ b = reshape (x[(n^ 2 + 1 ): (2 n^ 2 )], n, n)
78
78
ret = log .((a * b) + a - b)
79
79
callback != = nothing && callback (ret)
80
80
return ret
83
83
84
84
n = 100
85
85
matrix_test = generate_matrix_test (n)
86
- x = collect (1.0 : (2 n ^ 2 + n))
86
+ x = collect (1.0 : (2 n^ 2 + n))
87
87
benchmark_driver! (matrix_test, x; f_displayname= " matrix_test" )
88
88
89
89
# ###################################################################
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ function optimise_ir!(ir::IRCode; show_ir=false, do_inline=true)
54
54
inline_state = CC. InliningState (local_interp)
55
55
CC. verify_ir (ir)
56
56
if do_inline
57
- ir = CC. ssa_inlining_pass! (ir, inline_state, true )#= propagate_inbounds=#
57
+ ir = CC. ssa_inlining_pass! (ir, inline_state, true ) #= propagate_inbounds=#
58
58
ir = CC. compact! (ir)
59
59
end
60
60
ir = __strip_coverage! (ir)
96
96
# Run type inference and constant propagation on the ir. Credit to @oxinabox:
97
97
# https://gist.github.com/oxinabox/cdcffc1392f91a2f6d80b2524726d802#file-example-jl-L54
98
98
function __infer_ir! (ir, interp:: CC.AbstractInterpreter , mi:: CC.MethodInstance )
99
- method_info = CC. MethodInfo (true , nothing )#= propagate_inbounds=#
99
+ method_info = CC. MethodInfo (true , nothing ) #= propagate_inbounds=#
100
100
min_world = world = get_inference_world (interp)
101
101
max_world = Base. get_world_counter ()
102
102
irsv = CC. IRInterpretationState (
You can’t perform that action at this time.
0 commit comments