Skip to content

Commit 0025d89

Browse files
committed
fix a method cache matching issue with Type{T}
respect type-equality, keep track separately of what Kind it needs to match revert dfd8fc1 fix #11840 (except for generated functions)
1 parent 240b0ea commit 0025d89

File tree

4 files changed

+295
-300
lines changed

4 files changed

+295
-300
lines changed

base/compiler/optimize.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ function finish(me::InferenceState)
456456
def = me.linfo.def::Method
457457
keeptree = me.optimize &&
458458
(me.src.inlineable ||
459-
ccall(:jl_is_cacheable_sig, Int32, (Any, Any, Any), me.linfo.specTypes, def.sig, def) != 0)
459+
ccall(:jl_isa_compileable_sig, Int32, (Any, Any), me.linfo.specTypes, def) != 0)
460460
if keeptree
461461
# compress code for non-toplevel thunks
462462
inferred_result = ccall(:jl_compress_ast, Any, (Any, Any), def, inferred_result)

0 commit comments

Comments
 (0)