@@ -362,7 +362,7 @@ function _structural_analysis!(ci::CodeInstance, world::UInt, settings::Settings
362362 compact. result_idx -= 1
363363 new_args = _flatten_parameter! (Compiler. optimizer_lattice (refiner), compact, callee_codeinst. inferred. ir. argtypes, arg-> stmt. args[arg+ 1 ], line, settings)
364364
365- new_call = insert_instruction ! (compact, settings, @__SOURCE__ ,
365+ new_call = insert_instruction_here ! (compact, settings, @__SOURCE__ ,
366366 NewInstruction (Expr (:invoke , (StructuralSSARef (compact. result_idx), callee_codeinst), new_args... ), stmtype, info, line, stmtflags))
367367 compact. ssa_rename[compact. idx - 1 ] = new_call
368368
@@ -387,7 +387,7 @@ function _structural_analysis!(ci::CodeInstance, world::UInt, settings::Settings
387387 Compiler. delete_inst_here! (compact)
388388
389389 (new_ret, ultimate_rt) = rewrite_ipo_return! (Compiler. typeinf_lattice (refiner), compact, line, settings, ret_stmt. val, ultimate_rt, eqvars)
390- insert_instruction ! (compact, settings, @__SOURCE__ , NewInstruction (ReturnNode (new_ret), ultimate_rt, Compiler. NoCallInfo (), line, Compiler. IR_FLAG_REFINED), reverse_affinity = true )
390+ insert_instruction_here ! (compact, settings, @__SOURCE__ , NewInstruction (ReturnNode (new_ret), ultimate_rt, Compiler. NoCallInfo (), line, Compiler. IR_FLAG_REFINED), reverse_affinity = true )
391391 elseif isa (ultimate_rt, Type)
392392 # If we don't have any internal variables (in which case we might have to to do a more aggressive rewrite), strengthen the incidence
393393 # by demoting to full incidence over the argument variables. Incidence is not allowed to propagate through global mutable state, so
@@ -425,7 +425,7 @@ function rewrite_ipo_return!(𝕃, compact::IncrementalCompact, line, settings,
425425 new_types = Any[]
426426 for i = 1 : length (ultimate_rt. fields)
427427 ssa_type = Compiler. getfield_tfunc (𝕃, ultimate_rt, Const (i))
428- ssa_field = insert_instruction ! (compact, settings, @__SOURCE__ ,
428+ ssa_field = insert_instruction_here ! (compact, settings, @__SOURCE__ ,
429429 NewInstruction (Expr (:call , getfield, variable), ssa_type, Compiler. NoCallInfo (), line, Compiler. IR_FLAG_REFINED), reverse_affinity = true )
430430
431431 (new_field, new_type) = rewrite_ipo_return! (𝕃, compact, line, settings, ssa_field, ssa_type, eqvars)
@@ -434,13 +434,13 @@ function rewrite_ipo_return!(𝕃, compact::IncrementalCompact, line, settings,
434434 end
435435 newT = Compiler. PartialStruct (ultimate_rt. typ, new_types)
436436 if widenconst (ultimate_rt) <: Tuple
437- retssa = insert_instruction ! (compact, settings, @__SOURCE__ ,
437+ retssa = insert_instruction_here ! (compact, settings, @__SOURCE__ ,
438438 NewInstruction (Expr (:call , tuple, new_fields... ), newT, Compiler. NoCallInfo (), line, Compiler. IR_FLAG_REFINED), reverse_affinity = true )
439439 else
440- T = insert_instruction ! (compact, settings, @__SOURCE__ ,
440+ T = insert_instruction_here ! (compact, settings, @__SOURCE__ ,
441441 NewInstruction (Expr (:call , typeof, ssa), Type, Compiler. NoCallInfo (), line, Compiler. IR_FLAG_REFINED), reverse_affinity = true )
442442
443- retssa = insert_instruction ! (compact, settings, @__SOURCE__ ,
443+ retssa = insert_instruction_here ! (compact, settings, @__SOURCE__ ,
444444 NewInstruction (Expr (:new , T, new_fields... ), newT, Compiler. NoCallInfo (), line, Compiler. IR_FLAG_REFINED), reverse_affinity = true )
445445 end
446446 return Pair {Any, Any} (retssa, newT)
@@ -454,7 +454,7 @@ function rewrite_ipo_return!(𝕃, compact::IncrementalCompact, line, settings,
454454 push! (eqvars. varclassification, External)
455455 push! (eqvars. varkinds, Intrinsics. Continuous)
456456
457- new_var_ssa = insert_instruction ! (compact, settings,
457+ new_var_ssa = insert_instruction_here ! (compact, settings,
458458 NewInstruction (Expr (:invoke , nothing , variable), Incidence (nonlinrepl), Compiler. NoCallInfo (), line, Compiler. IR_FLAG_REFINED), true )
459459
460460 eq_incidence = ultimate_rt - Incidence (nonlinrepl)
@@ -464,13 +464,13 @@ function rewrite_ipo_return!(𝕃, compact::IncrementalCompact, line, settings,
464464 push! (eqvars. eqkinds, Intrinsics. Always)
465465 new_eq = length (eqvars. total_incidence)
466466
467- new_eq_ssa = insert_instruction ! (compact, settings, @__SOURCE__ ,
467+ new_eq_ssa = insert_instruction_here ! (compact, settings, @__SOURCE__ ,
468468 NewInstruction (Expr (:invoke , nothing , equation), Eq (new_eq), Compiler. NoCallInfo (), LINE, Compiler. IR_FLAG_REFINED), true )
469469
470- eq_val_ssa = insert_instruction ! (compact, settings, @__SOURCE__ ,
470+ eq_val_ssa = insert_instruction_here ! (compact, settings, @__SOURCE__ ,
471471 NewInstruction (Expr (:call , InternalIntrinsics. assign_var, new_var_ssa, ssa), eq_incidence, Compiler. NoCallInfo (), LINE, Compiler. IR_FLAG_REFINED), true )
472472
473- eq_call_ssa = insert_instruction ! (compact, settings, @__SOURCE__ ,
473+ eq_call_ssa = insert_instruction_here ! (compact, settings, @__SOURCE__ ,
474474 NewInstruction (Expr (:invoke , nothing , new_eq_ssa, eq_val_ssa), Nothing, Compiler. NoCallInfo (), LINE, Compiler. IR_FLAG_REFINED), true )
475475
476476 T = widenconst (ultimate_rt)
0 commit comments