Skip to content

Commit a207b27

Browse files
authored
Speed up invoke (#2138)
* Speed up invoke * handler specialize
1 parent 6746e5a commit a207b27

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compiler/interpreter.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -759,13 +759,13 @@ end
759759
end
760760

761761
function abstract_call_known(
762-
@nospecialize(interp::EnzymeInterpreter),
762+
interp::EnzymeInterpreter{Handler},
763763
@nospecialize(f),
764764
arginfo::ArgInfo,
765765
si::StmtInfo,
766766
sv::AbsIntState,
767767
max_methods::Int = get_max_methods(interp, f, sv),
768-
)
768+
) where Handler
769769

770770
(; fargs, argtypes) = arginfo
771771

@@ -889,7 +889,7 @@ function abstract_call_known(
889889
end
890890
return Base.@invoke abstract_call_known(
891891
interp::AbstractInterpreter,
892-
f,
892+
f::Any,
893893
arginfo::ArgInfo,
894894
si::StmtInfo,
895895
sv::AbsIntState,

0 commit comments

Comments
 (0)