Skip to content

Commit

Permalink
Speed up invoke (#2138)
Browse files Browse the repository at this point in the history
* Speed up invoke

* handler specialize
  • Loading branch information
wsmoses authored Nov 28, 2024
1 parent 6746e5a commit a207b27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/compiler/interpreter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -759,13 +759,13 @@ end
end

function abstract_call_known(
@nospecialize(interp::EnzymeInterpreter),
interp::EnzymeInterpreter{Handler},
@nospecialize(f),
arginfo::ArgInfo,
si::StmtInfo,
sv::AbsIntState,
max_methods::Int = get_max_methods(interp, f, sv),
)
) where Handler

(; fargs, argtypes) = arginfo

Expand Down Expand Up @@ -889,7 +889,7 @@ function abstract_call_known(
end
return Base.@invoke abstract_call_known(
interp::AbstractInterpreter,
f,
f::Any,
arginfo::ArgInfo,
si::StmtInfo,
sv::AbsIntState,
Expand Down

0 comments on commit a207b27

Please sign in to comment.