Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix methodinstance usage and backedges #2199

Merged
merged 17 commits into from
Dec 15, 2024
Prev Previous commit
Next Next commit
fix
wsmoses committed Dec 14, 2024
commit cdf92231ea33a983167cffbab78cc05f8cc0677c
2 changes: 1 addition & 1 deletion src/compiler.jl
Original file line number Diff line number Diff line change
@@ -3802,7 +3802,7 @@ end
continue
end
if EnzymeRules.is_inactive_from_sig(specTypes; world, method_table, caller) &&
has_method(
Enzyme.has_method(
Tuple{typeof(EnzymeRules.inactive),specTypes.parameters...},
world,
method_table,
2 changes: 1 addition & 1 deletion src/rules/customrules.jl
Original file line number Diff line number Diff line change
@@ -984,7 +984,7 @@ function enzyme_custom_common_rev(
end

@safe_debug "Applying custom reverse rule" TT = rev_TT, functy=functy
rmi = my_methodinstance(functy, rev_TT, world)
rmi = my_methodinstance(Reverse, functy, rev_TT, world)

if rmi === nothing
rev_TT = Tuple{typeof(world),functy,rev_TT.parameters...}