Skip to content

Commit 6a02c57

Browse files
authored
irinterp: improve semi-concrete interpretation accuracy (#52275)
By enforcing re-inference on calls with all constant arguments. While it's debatable whether this approach is the most efficient, it was the easiest choice given that `used_ssas` based on `IncrementaCompact` wasn't an option for irinterp. - fixes #52202 - fixes #50037
1 parent 32ea4a6 commit 6a02c57

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/matmul.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ mul_wrappers = [
2323
@test @inferred(f(A)) === A
2424
g(A) = LinearAlgebra.wrap(A, 'T')
2525
@test @inferred(g(A)) === transpose(A)
26+
# https://github.com/JuliaLang/julia/issues/52202
27+
@test Base.infer_return_type((Vector{Float64},)) do v
28+
LinearAlgebra.wrap(v, 'N')
29+
end == Vector{Float64}
2630
end
2731

2832
@testset "matrices with zero dimensions" begin

0 commit comments

Comments
 (0)