@@ -27,10 +27,9 @@ function factory_gen(world::UInt, source::Method, @nospecialize(_gen), settings,
2727 # First, perform ordinary type inference, under the assumption that we may need to AD
2828 # parts of the function later.
2929 ci = ad_typeinf (world, Tuple{fT}; force_inline_all= settings. force_inline_all, edges= Core. svec (factory_mi))
30- edges = Core. svec (ci)
3130
3231 # Perform or lookup DAECompiler specific analysis for this system.
33- result = structural_analysis! (ci, world, edges )
32+ result = structural_analysis! (ci, world)
3433
3534 if isa (result, UncompilableIPOResult)
3635 return Base. generated_body_to_codeinfo (
@@ -44,19 +43,19 @@ function factory_gen(world::UInt, source::Method, @nospecialize(_gen), settings,
4443 (diff_key, init_key) = top_level_state_selection! (tstate)
4544
4645 if settings. mode in (DAE, DAENoInit, ODE, ODENoInit)
47- tearing_schedule! (tstate, ci, diff_key, world, edges )
46+ tearing_schedule! (tstate, ci, diff_key, world)
4847 end
4948 if settings. mode in (InitUncompress, DAE, ODE)
50- tearing_schedule! (tstate, ci, init_key, world, edges )
49+ tearing_schedule! (tstate, ci, init_key, world)
5150 end
5251
5352 # Generate the IR implementation of `factory`, returning the DAEFunction/ODEFunction
5453 if settings. mode in (DAE, DAENoInit)
55- ir_factory = dae_factory_gen (tstate, ci, diff_key, world, edges, settings. mode == DAE ? init_key : nothing )
54+ ir_factory = dae_factory_gen (tstate, ci, diff_key, world, settings. mode == DAE ? init_key : nothing )
5655 elseif settings. mode in (ODE, ODENoInit)
57- ir_factory = ode_factory_gen (tstate, ci, diff_key, world, edges, settings. mode == ODE ? init_key : nothing )
56+ ir_factory = ode_factory_gen (tstate, ci, diff_key, world, settings. mode == ODE ? init_key : nothing )
5857 elseif settings. mode == InitUncompress
59- ir_factory = init_uncompress_gen (result, ci, init_key, diff_key, world, edges )
58+ ir_factory = init_uncompress_gen (result, ci, init_key, diff_key, world)
6059 else
6160 return :(error (" Unknown generation mode: $(settings. mode) " ))
6261 end
0 commit comments