Skip to content

Commit 988983f

Browse files
authored
Try marking hash as no type setting/inactive (#2493)
1 parent bd000f5 commit 988983f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/compiler.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3510,6 +3510,9 @@ function no_type_setting(@nospecialize(specTypes::Type{<:Tuple}); world = nothin
35103510
if specTypes.parameters[1] == typeof(Random.XoshiroSimd.xoshiro_bulk_nosimd)
35113511
return (true, false)
35123512
end
3513+
if specTypes.parameters[1] == typeof(Base.hash)
3514+
return (true, false)
3515+
end
35133516
return (false, false)
35143517
end
35153518

src/internal_rules.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ end
101101
function EnzymeRules.inactive_noinl(::typeof(Base.size), args...)
102102
return nothing
103103
end
104+
function EnzymeRules.inactive_noinl(::typeof(Base.hash), args...)
105+
return nothing
106+
end
104107
function EnzymeRules.inactive_noinl(
105108
::typeof(Base.setindex!),
106109
::IdDict{K,V},

0 commit comments

Comments
 (0)