Skip to content

Commit

Permalink
more fixes on master
Browse files Browse the repository at this point in the history
  • Loading branch information
MasonProtter committed Nov 5, 2023
1 parent 284e530 commit 0f612d1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/__test_ir.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const __width_ir_fmul = __is32bit ? 2 : 4
@test_broken nmatches(r"fmul <[0-9]+ x double>", ir) >= __width_ir_fmul
@test_broken nmatches(r"fcmp [a-z]* <[0-9]+ x double>", ir) >= __width_ir_fmul
else
# Compiler is now "_extremely_ smart"
@test nmatches(r"fmul <[0-9]+ x double>", ir) >= __width_ir_fmul
@test nmatches(r"fcmp [a-z]* <[0-9]+ x double>", ir) >= __width_ir_fmul
end
Expand Down
1 change: 1 addition & 0 deletions test/test_inference.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ end
@test_broken_inferred foldl(*, opcompose(Scan(+), Scan(+)), xs; init=1)
@test_broken_inferred foldl(*, opcompose(Scan(+), Map(x -> x::Int), Scan(+)), xs)
else
# Looks like inference has improved here
@test_inferred foldl(right, opcompose(Scan(+), Scan(+)), xs)
@test_inferred foldl(*, opcompose(Scan(+), Scan(+)), xs)
@test_inferred foldl(*, opcompose(Scan(+), Scan(+)), xs; init=1)
Expand Down
7 changes: 6 additions & 1 deletion test/test_processes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,12 @@ end
@testset "inference" begin
@test (@inferred setinput(ed, [0])).coll isa Vector{Int}
@test (@inferred setinput(ed, view([0], 1:1))).coll isa SubArray{Int}
@test_broken (@inferred setinput(ed, Float64[])).coll isa Vector{Float64}
if VERSION < v"1.11.0-"
# Looks like inference improved
@test_broken (@inferred setinput(ed, Float64[])).coll isa Vector{Float64}
else
@test (@inferred setinput(ed, Float64[])).coll isa Vector{Float64}
end
end
end

Expand Down

0 comments on commit 0f612d1

Please sign in to comment.